[ {"type": "function", "function": {"name": "read_code", "description": "Read the current working copy. Each line is prefixed by its 1-based line number as `<line>: <content>`. The prefix is for reference and is not part of the file content. `offset` is the 0-based line to start from; `limit` is capped at 2000 lines (default 100). Each response is capped at 50KB and this tool instance has a cumulative 200KB output budget. If the output says lines remain, continue from the reported offset.", "parameters": {"type": "object", "properties": {"offset": {"type": "integer", "default": 0}, "limit": {"type": "integer", "default": 100}}}}}, {"type": "function", "function": {"name": "edit_code", "description": "Replace old_string with new_string in the working copy of the source file. When editing text from read_code output, preserve the exact indentation (tabs or spaces) and omit the line-number prefix, such as `1: `. Never include the prefix in old_string or new_string. old_string must match EXACTLY ONE location: include neighboring lines to make it unique. Edits accumulate on the working copy; submit_fix diffs it against the original. Failed matches do not consume verification attempts.", "parameters": {"type": "object", "properties": {"old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["old_string", "new_string"]}}}, {"type": "function", "function": {"name": "submit_fix", "description": "Diff the working copy against the original file, build the structured fix, and run the deterministic verifier in-process. `desc` must be ONE Korean sentence (<=300 chars) describing the fix. Returns PASS, or FAIL with structured errors plus the affected region of the modified file in NEW coordinates. Maximum 3 verification attempts per finding.", "parameters": {"type": "object", "properties": {"desc": {"type": "string"}}, "required": ["desc"]}}}]