read_code_block
Extract a precise range of lines from Pumpkin API or WIT files by specifying file path, start line, and end line to inspect code or documentation.
Instructions
Reads a specific range of lines from a file in the Pumpkin API or WIT interface
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": {
"filePath": "<filePath>",
"startLine": "<startLine>",
"endLine": "<endLine>"
},
"name": "read_code_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | Yes | The ending line number (1-indexed, inclusive) | |
| filePath | Yes | Path to the file relative to the API or WIT root, e.g. 'src/lib.rs' | |
| startLine | Yes | The starting line number (1-indexed) |