mcp_diet_read_spill
Read a bounded slice from an oversized spill file by 1-based line range, UTF-8 byte offset, or RFC 6901 JSON Pointer to inspect large outputs safely.
Instructions
Safely read a bounded slice from an oversized mcp-diet spill file by 1-based line range, UTF-8 byte offset, or RFC 6901 JSON Pointer.
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": "mcp_diet_read_spill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the mcp-tool-output-*.json spill file inside the configured spill directory. | |
| endLine | No | 1-based inclusive end line number to read. | |
| maxBytes | No | Maximum UTF-8 bytes to return (capped by the active mcp-diet limit). | |
| startLine | No | 1-based inclusive start line number to read. | |
| jsonPointer | No | RFC 6901 JSON Pointer (e.g. /results/0/title) to extract a nested value from JSON spills. | |
| offsetBytes | No | 0-based UTF-8 byte offset to begin reading from. |