> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solaraai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# undo_agent_changes

> Solara AI MCP tool: Undo the AI agent's changes

Use this when the person wants your changes undone: by default (scope last) only your most recent change still in the edit, and called again the one before it; scope all your whole latest run of changes at once; rev exactly that change. One new edit, keeping anything the person changed since: not a restore. The answer's undid says what was undone, by each change's op names: tell the person.

| | |
| - | - |
| Permission | Edit (`mcp:edit`) |
| Read-only | No |
| Safe to repeat | No |
| Overwrites, spends or posts | Yes |
| Reaches outside Solara | No |

## Inputs

| Name | Type | Required | Description |
| - | - | - | - |
| `video_id` | UUID | Yes | The video's id, from create\_video. |
| `scope` | string | No | last (default): your most recent change; all: your whole latest run of changes. One of `last`, `all`. |
| `rev` | integer | No | Exactly this change of yours: the rev an edit's answer gave, or one of undid\_revisions. The same call repeated (an answer lost) never takes back another. |

A refusal is a result with `isError: true` and `structuredContent.error` = `{code, message, next}`: see [Limits and errors](https://docs.solaraai.com/guides/limits-and-errors.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.