Request Approval
request_approvalAsk the ActivitySmith account owner for a decision or a choice before you act. Sends a Time Sensitive Push Notification to their iPhone; tapping it opens a review screen in the ActivitySmith app that shows everything you include, where they approve, reject, or type a reply. Waits up to 45 seconds. If the result is pending, call wait_for_approval repeatedly with the returned approval ID, which stays valid across client timeouts and reconnects. The result status is approved, rejected, replied, chosen, timed_out (after 30 minutes), or cancelled. When it is replied, read the reply text and act on it; do not run the operation unless the reply says to. When it is chosen, do what selected_option says. Give the user what they need to decide: execution_context and scope for a command or tool call, changes for file edits, links to a pull request, preview, docs, or anything else that helps them check the work, and screenshots (upload them first with prepare_screenshot_upload). To let the user pick between alternatives, send 2 to 4 options instead of approve and reject. Otherwise choose action-specific approve_label and reject_label values, such as Send and Cancel or Deploy and Hold.
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": {
"question": "<question>"
},
"name": "request_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| links | No | Optional links that help the user check the work before deciding, such as a pull request, deploy preview, dashboard, issue, docs, or video. They open in the app's browser, so use links that work on a phone. To show an image, attach it as a screenshot instead of linking to the file. | |
| 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. | |
| changes | No | Optional summary of the file changes the operation makes or ships, such as a commit or deploy. Line counts only, never file contents and never a per-file list. The user sees the file count, the line totals, and the top file names. | |
| details | No | Optional context that helps the user decide: what you did, what happens if they approve, and any risk. Shown in full on the review screen. | |
| options | No | Optional 2 to 4 choices instead of approve and reject, such as two designs or how to handle a failure. The user picks one or replies. Mark at most one as recommended. approve_label and reject_label are ignored when options are set. | |
| question | Yes | The decision the user needs to make, as one short question. It is the Push Notification title and the review screen heading. | |
| screenshots | No | Optional screenshots the user can view and zoom on the review screen. Upload each file first with the curl command from prepare_screenshot_upload, then list the returned IDs here. | |
| 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 |