vw_save_document
Saves the active Vectorworks document in place without a dialog, persisting edits to an already saved file; fails if the document has never been saved.
Instructions
Save the active document in place (File > Save) without any dialog. Fails on a document that has never been saved, because Vectorworks would ask for a name then (there is no silent Save As in the scripting API). Not journaled: earlier reverts still work after a save. Returns {path}.
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": "vw_save_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | Name of the document this call may change, as listed by vw_list_documents. If given and another document is in front, nothing changes and the call fails; use vw_switch_document first. Always pass it for writes. |