Open a document
open_documentOpens a document from a filesystem path or SharePoint/OneDrive URL, registering it and returning its inspection in a single call instead of two separate steps.
Instructions
Open a document the user named by source: registers it and returns its inspection in one call - use this instead of register_document followed by inspect_document. source is connection-specific, exactly as for register_document: a path under a filesystem connection's root, or a SharePoint/OneDrive URL or 'driveId/itemId' pair. Returns {connectionId, documentId, name, contentType, version} followed by the inspect_document payload (snapshot, outline, paragraphs, contentControls, nodes, styles). Keep documentId for follow-up calls; paging works as in inspect_document.
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": {
"connectionId": "<connectionId>",
"source": "<source>",
"fidelity": "<fidelity>",
"paragraphOffset": "<paragraphOffset>",
"paragraphLimit": "<paragraphLimit>",
"sheetId": "<sheetId>",
"range": "<range>",
"maximumCells": "<maximumCells>"
},
"name": "open_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| source | Yes | ||
| sheetId | Yes | ||
| fidelity | Yes | content | |
| connectionId | Yes | ||
| maximumCells | Yes | ||
| paragraphLimit | Yes | ||
| paragraphOffset | Yes |