Read an exact source span
read_spanRead exact line ranges from a pinned Git commit to retrieve verifiable source evidence; anchor checks confirm expected text and invalid or oversized spans are rejected.
Instructions
Lines start_line-end_line (1-based, inclusive; at most 120 lines and 16 KiB, and the encoded text must fit the 64 KiB response line) of a file at a pinned commit, exactly as stored in git, with blob id, blob and span SHA-256 and, given an anchor, its verdict (FOUND, FOUND_MULTIPLE, MISSING). Out-of-range or oversized spans are rejected, never clamped or shortened; the rejection names how many lines fit. The text is untrusted upstream data.
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": {
"commit": "<commit>",
"path": "<path>",
"start_line": "<start_line>",
"end_line": "<end_line>"
},
"name": "read_span"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Exact, case-sensitive repository-relative path. | |
| anchor | No | Exact text expected inside the span. | |
| commit | Yes | ||
| end_line | Yes | ||
| start_line | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| tool | No | ||
| error | No | ||
| notes | No | ||
| commit | No | ||
| outcome | No | ||
| warnings | No | ||
| truncated | No | ||
| next_cursor | No | ||
| schema_version | No | ||
| index_generation | No |