Get Navigation Context
get_navigation_contextReturns the selected document, current address, and containing procedure in one provider-neutral result, so you can locate where the cursor sits even when no procedure applies.
Instructions
Return the selected document, current address, and containing/current procedure in one provider-neutral result. The result reflects sequential provider observations, not an atomic cursor snapshot; a cursor outside any procedure returns procedure: null.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_navigation_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | Exact provider document or program identity. |