cw_document_state
Checks whether SONAR has a project open by reading the window title, so agents know if document, view, and track commands are available before acting.
Instructions
Whether SONAR has a document open, read from the window title — the one piece of project state this process can see. This gates a lot: with no project the menu bar has only the application-level menus and the track controls do not exist, which makes view and document commands look broken. With a project open the menu tree is 270 entries and the track strips appear.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cw_document_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||