vw_switch_document
Switch the active Vectorworks document by bringing a named open, saved file to the front so subsequent edits and exports target the correct drawing.
Instructions
Bring one of the open, saved Vectorworks documents to the front.
Changes only which document is active (no drawing change); verified afterwards by reading the front window's name. All other tools act on the active document, so use this before writing when vw_list_documents shows the wrong one in front. Returns {active, switched, documents}.
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": {
"name": "<name>"
},
"name": "vw_switch_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The document to bring to the front: its name as vw_list_documents shows it (".vwx" may be left out) or its full path. It must already be open and saved; unsaved documents cannot be switched to and closed files are not opened. |