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
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 |
Input Schema (JSON Schema)
{
"properties": {
"budget_bytes": {
"description": "Maximum context size in bytes",
"type": "integer"
},
"mode": {
"description": "Injection mode",
"enum": [
"hard",
"soft",
"smart"
],
"type": "string"
},
"open_files": {
"description": "Currently open files",
"items": {
"type": "string"
},
"type": "array"
},
"task": {
"description": "Current task description",
"type": "string"
},
"top_k": {
"description": "Maximum number of injections",
"type": "integer"
}
},
"required": [
"task"
],
"type": "object"
}