Read Interactive Study Context
interactive_study_context_readRecover a missing reader reference; this is not an attachment listing. It returns where the user is in the reader now: the active ayah, any selected passage and the visible page, as the open reader last reported them. A reader has an active ayah from the moment it opens, before the user taps anything, and the recitation moves it. If a requested reader passage is still unidentified from the prompt and submitted items, and current reader context is unavailable for that reader, call interactive_study_context_read exactly once. Use its latest saved context only to fill that missing reference, without replacing other submitted items. Current context that says no selection is still available context; do not replace it with older saved state or restore a removed passage. If the reference remains unidentified, say the reader selection is unavailable instead of inferring or guessing what the user meant. Pass the relevant reader's context ID whenever this conversation contains it, from the reader's opening result or its current reader context; omit it only when no context ID appears in the conversation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "interactive_study_context_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_id | No | Public context ID of the relevant reader, as this conversation shows it: in the reader's opening result or in its current reader context. Pass it whenever the conversation contains it. Without it, only a host that identifies the conversation, such as ChatGPT, can find the latest saved context; on other hosts, such as Claude, a reader's saved context is found only by its context ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | open_reader_report when the reader that is open reported this state, which it does within a second of the user moving, selecting or the recitation advancing; server_saved_reader_context when no reader is open and its last saved context is returned; none otherwise. | |
| revision | No | Server-assigned monotonic revision of the saved context. Null when unavailable, and for an open reader that has not saved one yet. | |
| saved_at | Yes | UTC time of the returned state: when the open reader last reported a change, or when the saved context was written. Null when unavailable. | |
| context_id | Yes | Public locator used for this result. An opaque 24-character lowercase hexadecimal value permits sanitized explicit lookup on every host but never mutation. Null when the caller omitted context_id and no trusted scoped context resolved. | |
| active_ayah | No | The ayah the user is on in the reader: the ayah holding the reader's cursor. A reader has one from the moment it opens, before anything is tapped; a tap, a step, a link or the recitation moves it. With no selection, this is what 'this ayah' or 'where I am' means. It is not the viewport anchor, which only records what is at the top of the view. Null when the reader has reported no position. | |
| availability | Yes | Whether the reader's state is available: what its open reader last reported, or else its last saved context. | |
| visible_page | No | The field reports the latest visible Mushaf page independently of the selection. Null means the lookup has no visible page. | |
| reader_lineage | Yes | Sanitized reader tool, public context generation, and initial/successor relation. It never contains an instance ID or capability. | |
| viewport_anchor | Yes | Latest canonically validated stable viewport word anchor and offset, with the shared reader cursor when one was saved; the cursor's ayah and word are validated against canonical pages too. Null when unavailable or not yet reported. | |
| active_selection | Yes | The result reports the selection after validation against canonical Quran text. Null means the reader has no selection. The active_ayah field still identifies the ayah that holds the cursor. The viewport anchor does not establish a selection. |