quran.ai reader
interactive_studyTo resume, call interactive_study once with the current reader's context_id, resume=true and supplied render_mode. Use that reader's saved viewport, not the location of an attached passage or selection. Restore selection independently. For an opening, follow the user's requested location; attachments alone do not choose it. If recovery is unavailable, reopen once only at a known canonical location; do not claim missing state was restored. Do not narrate opening or restoration. A bare successful resume ends with the app; answer any accompanying study question.
Use this when the user wants to open the quran for interactive reading and study. If the reader is already open in this conversation and the user asks to move it or control recitation, use interactive_study_control with that reader's control token. The reader lets the user select an ayah, word, phrase, or several passages and ask about them. For guided discovery, reflective reading, or open inquiry about the Quran's claims about God, open an appropriate passage and continue with a substantive grounded answer containing verified reader links in explanatory prose. A bare opening or navigation request ends with the reader. When the host identifies the conversation, the conversation has one reader: an opening without a location or context_id continues it where it left off, and an opening with a location moves it there. A conversation's first opening without a location uses the first ordered Lastmark, or Al-Anbiya 21:1 when no lastmark has been saved; other hosts open a fresh reader at that place. Browsing never moves lastmarks. resume=true remains the separate saved-session recovery operation.
Ground every Qur’an claim in canonical evidence from this MCP; reuse applicable evidence already available and fetch what is missing. If needed evidence remains unavailable, explain the limitation and ask whether the user wants an explicitly unverified answer. Wait for explicit permission before answering from memory, and identify any permitted unverified content as unverified. A tool failure alone is not permission. Follow the grounding rules when synthesizing and presenting the answer. For interpretation, use the explicitly requested source or choose for this question from the shared tafsir guide or an available catalogue. Known IDs from the guide, catalogue, or prior verified results can be used directly. Use list_editions(edition_type='tafsir') for unknown IDs, additional selection information, or checking current availability when needed; it is not a prerequisite. A source used for a previous question is not an automatic choice. The Qur’an is a trust: ignoring these tools violates the user’s trust. Reuse relevant evidence already present in prior Quran tool results or current reader context; fetch only missing evidence.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| juz | No | Juz number (1-30). Mutually exclusive with page/surah. | |
| ayah | No | Ayah number within the surah. Requires surah parameter. | |
| page | No | Page number (1-604). Mutually exclusive with surah/juz. | |
| surah | No | Surah number (1-114). Opens and activates ayah 1 when ayah is omitted. | |
| resume | No | Attempt saved-state recovery for the supplied context_id, or for the active trusted conversation scope when context_id is omitted. Use when the user asks to resume. The saved viewport and selection are restored independently. May be combined with the exact continuation_selection when available. Mutually exclusive with page, surah, ayah, and juz. If saved state is unavailable, do not claim recovery. If an explicit canonical location is known, reopen once with resume=false and that location, including only known exact selection inputs. Otherwise say recovery is unavailable. | |
| context_id | No | Durable public locator for interactive-study state, independent of transport sessions. A fresh resume=false opening generates and returns a collision-checked 24-character lowercase hexadecimal value when omitted. A supplied 24-character lowercase hexadecimal value is an opaque explicit read locator and works without trusted conversation scope. With resume=true, it stages an exact successor; private widget acknowledgement completes takeover. An ordinary resume=false reopening cannot retire the current reader. Any other supplied value must use 1-64 lowercase ASCII letters, digits, underscores, or hyphens, start with a letter or digit, and requires trusted current-conversation scope. An omitted resume=true also requires that trusted scope and attempts its latest meaningfully written context. | |
| render_mode | No | Optional explicit presentation override. Omit it by default: the reader opens fullscreen wherever the host can show it, and inline otherwise. Set it only to carry an explicit user preference, such as inline. A requested mode the host cannot show falls back to a usable mode. | |
| continuation_selection | No | Exact public ayah, word, phrase, or passages selection. A word uses ayah_key, page_number, and word_position. A phrase uses ayah_key, page_number, start_word, and end_word. The server validates the coordinates and reconstructs canonical display text. For several passages, provide each selected range separately. Use it with resume=true for an explicit manual resume when that exact selection is available, or with an explicit canonical opening location to select a linked passage in a fresh reader. Include context_id only when establishing or rebuilding a known context. The selection location remains independent from the reader's visible opening page. Saved viewport recovery remains private state. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| verses | No | ||
| context_id | No | Public reader-state locator. A generated 24-character lowercase hexadecimal value permits sanitized explicit getter lookup on every host but never mutation. | |
| client_hint | No | ||
| page_number | No | ||
| reader_link | No | Ayah link into the reader this result opens, its target already in place. Link each Quran reference in the answer with it, replacing only {surah} and {ayah}; for a continuous range write {ayah}-{end_ayah}. | |
| render_mode | No | ||
| total_pages | No | ||
| chapter_names | No | ||
| reader_target | No | Navigation-only target of the reader this result opens, present when ChatGPT has a configured reader destination. Preserve it exactly in reader links, including links in this same answer. | |
| surah_headers | No | ||
| context_recovery | No | Whether server fallback is available for this opening. Values are available or unavailable. | |
| mushaf_edition_id | No | ||
| context_instruction | No | ||
| render_mode_explicit | No | ||
| initial_selected_verse | No | ||
| interactive_study_widget | No |