context_preview
Preview and inject relevant code context for the current task in AI coding workflows. Specify open files, task details, and context size to optimize accuracy within Kratos-MCP.
Instructions
Preview context injection for current task
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": {
"task": "<task>"
},
"name": "context_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget_bytes | No | Maximum context size in bytes | |
| mode | No | Injection mode | |
| open_files | No | Currently open files | |
| task | Yes | Current task description | |
| top_k | No | Maximum number of injections |