guard_context
Reads files and directories, drops noise, and packs relevant context under a strict token budget to keep coding agents within limits.
Instructions
Read files/dirs, drop noise (lockfiles, build output, logs, minified/binary), and pack them under a strict token budget.
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": {
"paths": "<paths>"
},
"name": "guard_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| budget | No | small (4k) | medium (8k) | large (16k) | integer | |
| ignore | No | extra filename globs to drop |