Show a passage to the user
openDisplay a file from the user's computer with a chosen passage scrolled to and highlighted, covering PDFs, web pages, Office documents, and code so the user sees the exact context.
Instructions
Open a file on the user's computer with the passage highlighted: PDFs, web pages, text and code in their browser, Word/PowerPoint/Excel files in their app. Use it only when the user asks to see a passage or file.
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": {
"file": "<file>"
},
"name": "open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The file's full path, the `file` from search or browse results. | |
| chunk | No | The passage's `chunk`; it's scrolled to and highlighted. Omit to open the file at the top. | |
| query | No | Words to highlight too, usually the search query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The page opened in the browser. | |
| file | Yes | ||
| opened_in | Yes | 'browser' (passage highlighted) or 'app' (Office files, no highlight). |