Move the rollback bar
onshape_rollbackSet a document's rollback index to suppress all features after a chosen point; use 0 to roll back before the first feature.
Instructions
Set the rollback index so features after it are suppressed. Index 0 rolls back to before the first feature.
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": {
"doc": "<doc>",
"ws": "<ws>",
"elem": "<elem>",
"index": "<index>"
},
"name": "onshape_rollback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| index | Yes | Rollback index; use a large number to roll fully forward. |