Agents
agentsLists, makes, changes and wakes this account's agents. An agent is not a workbook: it wakes by itself, on a timer (every_minutes) or when a prompt is sent to it, runs the procedure drawn for it, and writes into the workbooks that procedure names. With no action, lists every agent with its clock (how it wakes, when it next wakes, whether it is paused) and what its wakes cost each of the last days.
An account's one agent is its principal, which hedwigai assigns; accounts do not make agents, so create is refused except on hedwigai's own account. An agent has no goal: what it does is the system's (it orchestrates), whom it acts for is its system prompt, and what a wake calls for is its chains, stored with it. update changes how it wakes or its chains, or pauses and resumes it. wake wakes it now: a timer agent at the next look of the ticker; a prompt agent with the prompt given. A wake uses the account's balance.
To answer in words, draw P[prompt] --> A[answer: in two plain sentences] --> R[Reply]; to tell the owner when the records do not answer, add P --> H[hand_off: when the records do not answer], A --> H and H --> N[Owner note]. An account's agent is reached by mail to its principal's handle (principal with handle); there is no public address.
remove takes an agent off the account: its clock goes, and its workbook stays, with its procedure, as one of the account's workbooks the principal may run. New work is a chain of the principal's procedure, or a workbook of the account, not a new agent.
principal reads the account's principal agent, the one agent that acts for the account (one per account). With agent, outcome_workbook and system_prompt it makes that agent the principal, replacing the one before: a principal must have an outcome, which is a workbook its work counts through, and a system prompt every one of its runs reads. attach_workbooks and attach_agents are the workbooks and agents it works with, such as the researchers whose workbooks it reads. Setting it again replaces all of it.
principal with handle (and nothing else) gives the account's principal agent its email address, such as principal@<the account's domain>; mail to it from a member of the account wakes the principal agent with the mail as its prompt. The domain must be the account's own or one in its connected GoDaddy. It can be given before the account has a principal agent. With none given, the principal is reached at its default, principal.@hedwigai.com (e.g. principal.owow.com@hedwigai.com), which needs no setup; handle: "" goes back to it.
Setting or removing a principal is hedwigai's own account's to do. principal with account (an account id) and system_prompt assigns that account its principal, as that account: agent names one of its workbooks to be it (an agent already, or made one), or, with no agent, a new agent is made, called title (Principal when left out; the account renames it as any workbook), with procedure as its chains. It wakes daily unless wake/every_minutes say otherwise; its outcome is its own workbook unless outcome_workbook is given; a principal it replaces becomes a workbook again. account with unassign: true takes the account's principal away.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wake | No | `create` or `update`: `timer` wakes it every `every_minutes`; `prompt` wakes it only when a prompt is sent to it. `create` makes a timer unless told `prompt`. | |
| agent | No | The agent's id, from `list`. Needed for `update`, `wake` and `remove`. | |
| title | No | `create`, or `principal` with `account`: what a new agent is called; Principal when left out. | |
| action | No | What to do. `list` (the default) lists them, or reads one when `agent` is given. | |
| handle | No | `principal`: the email address that reaches the principal agent, e.g. principal@example.com; empty goes back to the default, principal.<account id>@hedwigai.com. | |
| paused | No | `update`: true pauses the agent, false resumes it. | |
| prompt | No | `wake`, for a prompt agent: what to ask it. | |
| account | No | `principal`, hedwigai's own account only: the account id to assign a principal to (or take it from, with `unassign`). | |
| unassign | No | `principal` with `account`: true takes that account's principal away; its agent becomes a workbook again. | |
| procedure | No | `create` or `update`: the procedure as a Mermaid flowchart, each node one step. An agent runs only once it has one. Pieces drawn unconnected are chains. The principal is an orchestrator and does no step itself: when asked, mailed or woken, it runs an existing workbook of the account that fits, else a chain that applies (kept as a graph workbook of its own in the Principal folder), else a new harnessroom workbook there, and answers with the workbooks they gave back. Steps that do work: `answer: <how>` writes words from what is drawn into it (the prompt, a table, a constant) with the principal's system prompt in mind; `hand_off: <when>` reads the message and the answer drawn into it and, when the owner is needed, mails the agent's owner who wrote, their words and the answer (once a visitor a day, 20 notes a day), its words saying what it did; `vision` reads pictures; `nano-banana` makes one; `find_workbook: <words>` and `pick_table: <words>` find the account's own records. A node with no step name and nothing drawn into it is a constant; `prompt` is what the wake was asked; a last node with nothing after it is a heading in the output. | |
| attach_agents | No | `principal`: ids of the agents attached to the principal agent. | |
| every_minutes | No | For a timer: minutes between wakes, e.g. 1440 for once a day or 10080 for once a week, at most. Fifteen when left out. | |
| system_prompt | No | `principal`: the principal agent's system prompt, whom it acts for, read by every one of its runs. | |
| attach_workbooks | No | `principal`: ids of the workbooks attached to the principal agent. | |
| outcome_workbook | No | `principal`: the id of the workbook that is the principal agent's outcome. |