code_read
Read a file or one symbol before editing to retrieve exact content and a read_ref for subsequent edits; set budget_hint=0 to fetch the full file.
Instructions
Read a file or one symbol before editing; returns content + a read_ref to pass back when editing. budget_hint=0 → full file.
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>",
"task_id": "<task_id>"
},
"name": "code_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | core default; rich adds outline. | |
| locator | No | Anchor {symbol_id}/{file_path+name}; line_range = degraded. | |
| task_id | Yes | Task id. | |
| read_ref | No | Re-read by read_ref. | |
| budget_hint | No | Max chars; 0 = full. | |
| workspace_dir | Yes | Project root (abs). | |
| expected_state_revision | No | Guard. |