Read a file from the snapshot
snapshot_readRead a line window from one file in a repository snapshot, with secrets redacted and large sources preview-bounded, and get the next starting line when more remains.
Instructions
Return a line window of one file as the snapshot contains it: redacted, and bounded to a preview when the source is large. Reports the next fromLine when more remains.
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": "snapshot_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the repository root, as snapshot_locate reports it. | |
| root | No | Repository root. Defaults to the directory this server was started in. | |
| lines | No | How many lines to return. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. | |
| fromLine | No | First line to return, 1-based. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | ||
| path | No | ||
| reason | No | ||
| fromLine | No | ||
| pageable | No | ||
| totalLines | No | ||
| nextFromLine | No | ||
| returnedLines | No |