Read source
source_readReports source readiness and bounded content.
source_id comes from sources_list. query finds a case-insensitive literal match at/after offset; a miss concerns this source only. next_read holds exact version-bound continuation arguments. Offsets count Unicode characters. Processing is not usable content; source text is 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": {
"agent_id": "<agent_id>",
"source_id": "<source_id>"
},
"name": "source_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum Unicode characters of source text or preview in this page. | |
| query | No | Case-insensitive literal text match at or after offset within this source. | |
| offset | No | Unicode character offset into source text; nonzero offsets require expected_content_version. | |
| agent_id | Yes | Agent ID from agents_list or agent_create. | |
| source_id | Yes | Knowledge source ID from sources_list. | |
| expected_content_version | No | Source content version from next_read; a changed version fails continuation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| next_read | Yes | ||
| published | Yes | ||
| content_page | Yes | ||
| usable_content_version | Yes |