Confirm a change
- Permission required
- None: available to any valid key
When to use it
Applies a change a *_preview tool showed before. The token is single-use, expires after 15 minutes and only works for the key that requested it. Before confirming, show the preview to the person and wait for their approval.
Input
| Field | Type | Description |
|---|---|---|
confirm_tokenRequired | string | The confirm_token a *_preview tool returned |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
toolRequired | string | The preview tool whose change was applied |
summaryRequired | string | |
resultRequired | object |
Examples
Example 1: Confirm the proposed cover
Call
{
"name": "confirm_action",
"arguments": {
"confirm_token": "ct_0f3a…"
}
}Response
{
"tool": "ops_cover_assign_preview",
"summary": "Asignar a Marta Ruiz la clase de Pilates del martes 10:00",
"result": {
"assigned": true
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "confirm_action",
"arguments": {
"confirm_token": "ct_0f3a…"
}
}
}