code_task
Maps a coding goal to candidate files, structure, and impact before any edit, then routes to read, patch, and check steps. Pass English identifier guesses as search terms for non-English goals.
Instructions
Start here for any change: goal → candidates + structure + impact. Does not itself edit or check; then code_read → code_patch / code_batch → code_check. Matching is literal, not Chinese semantics: pass search_terms (English identifier guesses, hypotheses) for a non-English goal.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_dir": "<workspace_dir>",
"goal": "<goal>"
},
"name": "code_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | Coding goal. | |
| route | No | Inferred when omitted. | |
| target | No | Anchor {file, symbol, line}. | |
| request_id | No | Correlation id. | |
| search_terms | No | English identifier guesses for a non-English goal (≤8). HYPOTHESES, not verified names. | |
| workspace_dir | Yes | Project root (abs). |