Preview an operation before running it
preview_operationDescribe exactly what a confirmable write tool would do and get the confirmationToken it requires. Pass the name of the write tool as "tool" and the arguments you would pass it (without confirmationToken and requestId) as "arguments". Show the returned plan to the user and wait for an explicit yes before calling the tool with the same arguments and this confirmationToken. The token is single-use, expires after a few minutes, and is refused if anything the plan describes has changed.
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": {
"tool": "<tool>",
"arguments": "<arguments>"
},
"name": "preview_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| arguments | Yes | The arguments the write tool would be called with, without confirmationToken and requestId. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | ||
| tool | Yes | ||
| nextStep | Yes | ||
| expiresAt | Yes | ||
| expiresInSeconds | Yes | ||
| confirmationToken | Yes |