Commit Workspace Action
commit_workspace_actionExecute a previously prepared Google Workspace action exactly once after the user approves its preview, using a one-time token and returning the committed result.
Instructions
Run the call prepared with prepare_workspace_action, with exactly the bound arguments, at most once; this is the step that carries out a consequential action, so call it only after the user has seen the preview and agreed. A client that can ask the user directly is still asked here. A token that is invalid, expired or another user's is rejected. Returns status 'committed' with tool and the bound tool's result, that tool's error result if it failed, or its confirmation question if it asks one.
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": {
"commit_token": "<commit_token>"
},
"name": "commit_workspace_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit_token | Yes | One-time, principal-bound token from prepare_workspace_action's response; expires 10 minutes after issuance by default (MCP_CONFIRMATION_TTL_SECONDS). The bound action runs at most once: repeating a commit that already ran returns its saved result, and a confirmation question keeps the token valid for the answering call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | ||
| result | No | ||
| status | No | Machine-readable operation status. |