Request Approval
request_approvalAsk the ActivitySmith account owner for a decision. Sends an actionable Live Activity when available, falls back to an actionable Push Notification, and waits up to 45 seconds. If the result is pending, call wait_for_approval repeatedly with the returned approval ID. The approval ID stays valid across client timeouts and reconnects. Choose action-specific approve_label and reject_label values when they make the decision clearer, such as Send/Cancel or Deploy/Hold. When approving a concrete command or tool call, include execution_context and the most relevant scope so the user can evaluate the actual operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Optional primary scope for the decision. For local shell commands, provide working_directory with the full current working directory. Otherwise use the most decision-relevant project, environment, customer, account, or resource. Omit when no meaningful scope exists. | |
| details | No | Optional short context that helps the user decide. | |
| delivery | No | Optional delivery preference. auto prefers a Live Activity and falls back to a Push Notification. | auto |
| question | Yes | The decision the user needs to make. | |
| appearance | No | Optional pending Live Activity appearance. Customize its tint, SF Symbol, and badge. This does not change Push Notifications or resolved approval states. | |
| reject_label | No | Optional alternative action label. Choose a clear outcome such as Cancel, Keep Draft, or Don't Send. Defaults to Reject. | Reject |
| approve_label | No | Optional positive action label. When approving a specific action, prefer a concrete verb such as Send, Deploy, Publish, or Delete. Defaults to Approve. | Approve |
| execution_context | No | Optional structured context for the specific operation awaiting approval. Include it for commands and tool calls; omit it for question-only decisions. | |
| target_channel_slugs | No | Advanced optional targeting for team accounts. Omit to notify the account-wide default devices. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| approval | Yes | ||
| next_action | No |