vw_revert_last
Reverts the last server write in the active Vectorworks document, restoring prior field values, vertices, attributes, or deleted objects; repeat to step further back.
Instructions
Undo exactly the most recent write this server made in the active document.
Changes the document (back to its previous state for that one call). Every typed write tool records what it changed; this restores previous field values, vertices, class attributes, deletes objects, layers and classes that were created, or writes the inverse Lightwright patch. Call it repeatedly to step further back. Not possible: vw_delete_objects, and a vw_exec_python call that created nothing (it only changed existing objects); such an entry blocks stepping further back. Use this instead of Cmd-Z, which merges consecutive scripted edits. Returns {reverted_tool, ...what was restored or deleted, note?}.
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_revert_last"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | Name of the document this must run in, as vw_list_documents shows it (".vwx" may be left out) or its full path. If another document is active, nothing changes. Omit to act on whatever document is active. |