You are building developer-productivity tools using the Claude Agent SDK. The agent helps engineers explore unfamiliar codebases, understand legacy systems, generate boilerplate code, and automate repetitive tasks. It uses the built-in tools-Read, Write, Bash, Grep, and Glob-and integrates with Model Context Protocol (MCP) servers. Your agent needs to insert a new helper function into the middle of a 150-line utility module, between two existing functions. The Edit tool fails because its old_string parameter cannot find unique text to match-the file has repetitive docstrings, variable names, and structural patterns. What is the most reliable way to complete this insertion?
Select one answer.
Purchase Full Access to view answer options & explanation
The first 77 questions in this bank are completely free. Unlock Full Access on the exam page to view all answer choices, verified answers, explanations, and community discussions for all 256 questions.