prefetch_related
Predicts and pre-loads next-needed context by analyzing file imports, callees, and learned co-access patterns.
Instructions
Predict and pre-load context that will likely be needed next.
Combines static analysis (imports, callees, test files) with learned co-access patterns to predict what the agent will need.
Args: file_path: The file currently being accessed source_content: The source code content (for static analysis) language: Programming language (python, typescript, rust)
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": {
"file_path": "<file_path>"
},
"name": "prefetch_related"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | python | |
| file_path | Yes | ||
| source_content | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |