figma_rollback
Reverses a previous Figma write call by removing nodes it created and restoring properties it changed, using the returned checkpoint_id. Notes that earlier deletions of pre-existing nodes cannot be recovered.
Instructions
Undo what a previous write call (figma_execute_code, figma_insert_component_instance, figma_insert_svg) did: removes nodes it created and restores properties on nodes it modified. Deletions the code performed on pre-existing nodes are never recoverable. Every write call's response includes the checkpoint_id to pass here.
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": "figma_rollback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | fileName of a specific connected Figma document, when more than one is open (see figma_list_targets). | |
| checkpoint_id | No | The checkpoint_id from a previous write call's response. Omit (or pass "last") to roll back the most recent not-yet-rolled-back checkpoint. |