file_context
Retrieve known errors, decisions, open tasks, and preferences tied to a file path before editing it, so you can avoid repeating mistakes and respect prior project context.
Instructions
Before editing a file, ask what is known about it: fixed errors, decisions, open tasks and preferences that mention this file path. Pass an absolute or relative path.
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": "file_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path, e.g. src/engine/http.ts | |
| limit | No | Maximum number of results | |
| project | No | Optional — limit to one project (path or name) |