Undo or redo a change
myapp_undoUndo a change, or redo it with redo set to true. Without change_id, the last change. The app can also change outside this conversation: before acting on what was read earlier, read it again with myapp_get_app; after a conflict or an unexpected result, read it again before trying again.
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": "myapp_undo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| redo | No | ||
| draft | No | Secret of a draft, returned once by myapp_create without an account: the app as it takes shape, before it is kept in the user's account. Pass it back as draft, instead of app, to read, preview and change it, until myapp_create with this draft keeps the app in the account. It is not an id: do not show it to the user. | |
| change_id | No | Id of the change, as the answer of the change or myapp_get_app gives it: digits for an app, s_ and 12 hexadecimal digits for a draft. |