Прочитать документ
read_documentRetrieve a Tolstoy document—letter, diary entry, or chapter—segment by segment with its header; optionally show a window around a specific segment for context.
Instructions
Прочитать документ (письмо, дневниковую запись, главу) по порядку сегментов, с шапкой.
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": {
"doc_id": "<doc_id>"
},
"name": "read_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| start | No | ord, с которого читать (next_start) | |
| doc_id | Yes | doc_id из recall | |
| segment_id | No | показать окно вокруг этого сегмента (segment_ids из recall) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| bibl | Yes | библиографическая ссылка | |
| pages | Yes | ||
| title | Yes | ||
| voice | Yes | ||
| author | Yes | ||
| corpus | Yes | ||
| volume | Yes | том ПСС | |
| segments | Yes | ||
| addressee | Yes | адресат письма | |
| date_text | Yes | ||
| next_start | Yes | start для следующей порции; null — документ дочитан | |
| total_segments | Yes |