Execute approved write
execute_approvedExecute a previewed entity write or workflow action using its approval token.
The single second step for every two-step write: run any preview_*
tool first, then call this with the token and the exact execution
payload from the preview response. Keep every approved field unchanged.
Inline document/image upload only: add content_base64 INSIDE that
payload, as its execution.note instructs; no separate base64 parameter
or file argument. Native agent_upload uses the same file instead.
The token binds the action, target and approved fields; altered fields
are rejected and inline bytes must match the approved digest/MIME/length.
Args:
approval_token: The approval.token value from the preview
response. Single-use and short-lived.
payload: The execution payload exactly as returned by the preview
(the WHOLE execution.payload object, including wrapper
keys such as entity and nested payload). Never pass
only an inner payload. Inline upload adds only content_base64
at its top level. Omit only when the preview says no payload
is needed.
file: The same native attachment selected for the agent-upload preview.
Required for native file uploads; omitted for ordinary writes
and local binary transport. The bytes must match the approved
SHA-256, MIME type and length. Never put a URL inside payload.
Returns: The mutation summary of the executed action — the same shape the action's preview documents.
when_to_use: After a successful preview_* call, to perform the
approved mutation.
preconditions: A valid, unconsumed approval token from the same
connection; approved fields unchanged, with only the documented
inline content_base64 addition where required.
post_effects: Exactly one business mutation per token; replaying the
same token returns the recorded outcome instead of writing twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| payload | No | ||
| approval_token | Yes | ||
| correlation_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||