get_ir_document_content
The extracted text of one IR document, page by page — use it to open the pages an analysis cites, or to read a deck directly.
FLOW: take `document_url` from list_ir_documents or get_ir_document_analysis. A
`page_number_url` (document_url#page=N) works too: the `#page=N` is dropped before the
call and the whole document comes back, so read the page whose `page_number` is N.
Returns {"url", "count", "pages", "note"}. A page is {page_number, page_number_url,
char_count, content}. Cite a page's `page_number_url` when you repeat anything from its
`content`.
An empty result usually means the url is not a stored document_url (a `source_url`
will not match): `note` is set only then. A 422 means the url failed validation. A 401
means the sign-in expired (your MCP client re-runs OAuth). Requires auth (your MCP
client attaches the OAuth bearer automatically). Rate-limited 100/min per user; counts
toward plan quota.
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": {
"url": "<url>"
},
"name": "get_ir_document_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A document_url returned by list_ir_documents or get_ir_document_analysis (an http(s) URL with no whitespace, at most 2048 characters). Not the source_url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The document_url sent to the backend. | |
| note | No | Set only when no pages came back: what an empty result can mean. | |
| count | Yes | Pages returned. | |
| pages | Yes | One entry per page of extracted text. |