open_document
Opens an existing document in the running Hillnote app and can scroll to and highlight a heading, text, or anchor so users see the exact section.
Instructions
Open an existing document in the running Hillnote app so the user can see it. To take the user to one part of it ("show me the Risks section", "where does it say…"), pass heading (or text / anchorId): the document opens, scrolls there and the spot is highlighted — never say you cannot show a section. Accepts the same document identifiers as read_document (id, title, fileName, or registry path). Does NOT create documents — call add_document first, then open it. If you plan to modify the currently open document, re-read it right before each edit (other agents or the user may be editing it too) and make targeted edits rather than rewriting the whole 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": {
"workspace": "<workspace>",
"document": "<document>"
},
"name": "open_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Scroll to this exact text and highlight it (first occurrence). | |
| target | No | Where to open it. "main" (default) shows it in the main editor. "quickview" opens a read-only side panel and leaves the user's current document in place. heading, text and anchorId need "main". | |
| heading | No | Scroll to this heading and highlight it (exact or partial match). | |
| anchorId | No | Scroll to this section anchor ([text]{#id} marks, or the fragment of a doc:…#id link) and highlight it. | |
| document | Yes | Document ID, title, fileName, or registry path | |
| workspace | Yes | Workspace path or name | |
| focusWindow | No | Bring the Hillnote window to the front (default true) |