Prepare command
prepare_commandPrepare an exact application or organization action requested by the user, after reading its command schema, when its execution is approval. Returns a short-lived approval URL for the member's fresh passkey. It does not execute the action. Never approve on behalf of the human, change approved inputs, or request secrets in chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Application id or orgSlug/appSlug for an app command | |
| org | Yes | Organization slug or id | |
| files | No | Optional form files, base64 encoded, up to 4 MiB each. File field names come from get_command_schema. | |
| fields | Yes | Exact fields from get_command_schema. Use strings, repeated string arrays, and serialized JSON for JSON fields. Do not include org, app or _csrf. | |
| reason | Yes | The user's reason for this exact change | |
| commandId | Yes | Exact id from list_commands | |
| environment | No | production |