What is known about one file
get_file_contextRetrieve every task, decision, dead end, and note recorded against a file to review prior work before editing it. Check what is linked first to avoid repeating mistakes.
Instructions
Everything todox has recorded against a file: the tasks that touched it with their dead ends and decisions, and the context notes attached to it in full. Ask before editing a file you have not seen this session — a dead end costs nothing to read and an afternoon to rediscover. The path may be absolute or relative to the repository root; both fold to the same answer, so a note linked on one machine is found from another. Pass cwd or project to say which repository is being asked about. linked:false means nothing is recorded against it; otherwise each task and note carries its link (id, hash, status) for report_file_hashes.
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": {
"path": "<path>"
},
"name": "get_file_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute working directory, used if project is omitted | |
| path | Yes | The file to ask about: an absolute path, or one relative to the repository root. Both resolve to the same answer on any machine. | |
| model | No | Your model id, e.g. 'claude-opus-5'. | |
| project | No | Slug, name, or a path inside the project |