Pushary: human-in-the-loop for AI agents
v1.5.2Human-in-the-loop for AI agents: ask a person and get approvals or answers by push notification.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
schedule_reminder Schedule a Personal Reminder to Remind Them Later
Schedule, list, retrieve or cancel a personal Pushary reminder for the authenticated user. Scheduled reminders can arrive after the agent exits. One-time only; up to 30 days away, 25 pending per user/site. Scheduling requires body and either inMinutes or at with an explicit UTC offset. requestId identifies one schedule across retries. reminderId retrieves its outcome; no arguments lists pending reminders; cancelReminderId cancels a pending reminder. Returns the scheduled time, state and any delivery warning. Delivery respects stop/mute and active membership. Does not schedule agent work or cus…
| Parameter | Type | Description |
|---|---|---|
agentName | string | |
at | string | Future ISO 8601 timestamp with explicit UTC offset or Z, at most 30 days away. Resolve the user's local time and timezone before scheduling; never guess a timezone. |
body | string | What to remind the authenticated user about, at most 180 UTF-16 units after secret redaction (emoji may use two). Omit all fields to list their pending reminders. |
cancelReminderId | string | Cancel this user's scheduled reminder instead of creating one. Already-dispatching reminders cannot be cancelled. |
env | string | |
inMinutes | integer | Minutes from the server clock; use for timers and relative reminders. |
machineId | string | |
reminderId | string | Look up your reminder, including its final outcome and delivery status, instead of scheduling or cancelling. |
requestId | string | Unique ID for this scheduling operation. Reuse it unchanged on retries to return the original reminder, including after it settles. |
sessionId | string | |
title | string |
send_notification Send Push Notification
Send a notification to connected devices for a requested update or a meaningful unattended result, such as a finished task. Delivery follows the account policy and optional recipient filters. context adds a detail page. context.askQuestion is kept for older clients; ask questions with ask_user. Returns web/mobile delivery counts and a warning when no delivery channel is connected. Sends real notifications. API reference: https://pushary.com/docs/agents/reference/tools#send_notification
| Parameter | Type | Description |
|---|---|---|
body * | string | Notification body text (max 500 chars). One or two sentences the user can act on without opening anything. |
title * | string | Notification title shown on the lock screen (max 100 chars). Lead with the outcome, e.g. "Build finished" or "Migration failed". |
agentName | string | Name of the agent sending this notification, format "{Agent} - {project}" (e.g. "Claude Code - myproject"). Shown in the notification so the user knows which session is talking. Falls back to the MCP… |
context | object | Structured context rendered as a rich detail page when the user taps the notification. Strongly recommended for task_complete and error notifications so the user can act from their phone. |
env | string | Set to "test" from a test suite. The notification is recorded in the activity feed and nothing is delivered to a phone or browser. The X-Pushary-Env: test header does the same for every call on the co… |
externalIds | array | Deliver only to subscribers matching these external IDs. |
iconUrl | string | URL of the notification icon image |
imageUrl | string | URL of a large image shown in the notification |
machineId | string | Stable machine id of the sending agent, so two machines never collapse into one session. |
sessionId | string | Opaque per-session id of the sending agent, so parallel sessions are attributed separately in the activity feed. |
subscriberIds | array | Deliver only to these subscriber IDs. Omit all targeting fields to reach every connected device. |
tags | array | Deliver only to subscribers that have any of these tags. |
url | string | URL opened when the user taps the notification. Ignored if context is provided, because a context detail page URL is generated automatically. |
ask_user Ask User a Question; May Call or Ring Their Phone If Unanswered
Ask for an unresolved decision or missing input. Prefer this over an in-app question when the user requests Pushary or mobile contact, is away, or work is unattended. Use it when the user asks you to call, phone or ring them if you get stuck or blocked. Supports confirm, select and input. Delivery follows account policy. When the reply includes phoneCall, Pushary may phone the person who can answer if the question is still unanswered, and records their answer; without phoneCall no call is planned. Waits at most 48 seconds and may return at once. While the reply is pending and has no handoffAct…
propose_scope Propose Run Scope
Request agreement on an unresolved or user-requested boundary for this session. Sends a real scope question and returns ratified, answered, contract and enforcement information. Only supported hooks can enforce file paths on path-bearing tool calls; promises are recorded but not enforced. Empty enforces means no automatic boundary checking. A contract never overrides host permissions or authorizes a separate action. The call waits at most 48 seconds; a pending proposal remains answerable after the call returns.
| Parameter | Type | Description |
|---|---|---|
doneWhen * | string | What "finished" means for this run, one or two lines. Carried for the human to judge against; never enforced automatically. |
sessionId * | string | Your per-session id, as your client reports it for THIS run. Required, and it is the key the gate reads the contract back by: a value that matches no live session still returns ratified:true and enfor… |
agentName | string | Name of the agent asking, format "{Agent} - {project}". |
allowedPaths | array | Globs you intend to change, e.g. ["src/**", "docs/*.md"]. File paths only: a word that is not a path ("hubspot", "summer-campaign") matches no file and makes every edit read as out of scope. A bare di… |
machineId | string | Stable machine id, so two machines never collapse into one session. |
offLimitsPaths | array | Globs you promise not to touch, e.g. [".env*", "infra/**"]. These win wherever they overlap allowedPaths. A leading "**/" needs a directory before it, so "**/.env*" is expanded for you to also cover a… |
promises | array | Boundaries that are not file paths: recipients, channels, spend limits, systems you will not open. For an agent whose work is not code (marketing, sales, support, operations), this is where the bounda… |
timeoutMs | integer | How long this call blocks, in milliseconds (up to 55000 is accepted; one call blocks at most 48 seconds). |
wait_for_answer Wait for User Answer
Read the answer or current state of an existing Pushary question by its correlationId. Waits up to timeoutMs, capped at 48 seconds; a poll that ends with status pending is not an answer, so keep waiting. Returns answered, the answer when available, status and handoff information. Only pending is a live unanswered question; cancelled, expired, missing and unavailable are terminal states. Does not send another question.
| Parameter | Type | Description |
|---|---|---|
correlationId * | string | The correlationId from an earlier ask_user response, or the linkedCorrelationId from a send_notification with an embedded askQuestion |
timeoutMs | integer | How long this one poll blocks, in milliseconds (default 30000; up to 55000 is accepted, and one poll blocks at most 48 seconds). Follow handoffAction when present, otherwise nextAction. |
cancel_question Cancel Pending Question
Retract a pending question that is no longer needed or is moving to the current client. Returns cancelled:true only when a pending question was removed. False may mean it was already answered, expired, missing or unavailable. An unavailable state includes handoffAction:stop because cancellation could not safely inspect or fence the question, and so does a question from a session the user stopped: stop, and do not act on it. Does not retract an answer already recorded.
| Parameter | Type | Description |
|---|---|---|
correlationId * | string | The correlationId of the pending question to cancel, as returned by ask_user or send_notification |
handoff | boolean | True when you are cancelling because you are about to ask the same question in the current client. For the next minute the Pushary hook then lets your own question tool through instead of sending it b… |
withdrawnBecause | Sent only by the Pushary hook, when what this question was about was already settled at the computer. Leave it out. |