read_source
Read DOCX, XLSX, CSV, text, or HTML files under sources/ as citable units with anchors for citations; use paging and follow truncation cues for long sources.
Instructions
Read one raw vault source under sources/ (DOCX, XLSX, CSV, text, HTML) as citable units, each with the anchor for [[src:sources/<file>#<anchor>]]; repository code is read through analyze_repo_structure sourceReads. A PDF returns no text: read it natively and cite #p<n>. Follow next while truncated. side effect 0.
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": "read_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | First unit, 1-based. | |
| path | Yes | Path under `sources/` (`sources/plan.docx`). | |
| limit | No | Units to return at most. Default 200. | |
| sheet | No | XLSX: one sheet by number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | ||
| next | No | ||
| note | No | ||
| path | Yes | ||
| units | Yes | ||
| format | Yes | ||
| sha256 | Yes | ||
| truncated | Yes | ||
| unitCount | Yes |