annsa_work
Do the work on a priority. Use it to claim a priority, write your part of the spec, leave notes, prove each Done When line with verify, and mark it shipped. claim gives you a spec_id for write, verify and ship, and a holder_key for write and ship. Ship only records that it shipped; it doesn't deploy anything. If you need a person to decide something, use escalate. It doesn't move, merge or re-rank priorities; that's annsa.board.
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": {
"action": "<action>"
},
"name": "annsa_work"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ask | No | For escalate: the question you want the person to answer, in one line. | |
| gap | No | For verify: what a partial check leaves unproven. | |
| how | No | For verify: how you checked the line: test, staging, prod or manual. | |
| into | No | For resolve move_row: the priority the row moves to. | |
| text | No | The note, or for write the whole new section, not just the change. | |
| label | No | What to call this session, up to 60 characters. Shown as who did it. | |
| lines | No | For verify: many lines, each {done_when_index, how, where, result, covers, gap, state, reason, until}. | |
| media | No | For verify: true to attach a screenshot or video; reply gives an upload link. | |
| model | No | For claim and ship: the model the agent runs on, like claude-opus-5-5. Shown beside its name. | |
| ships | No | For escalate: true when the ask is 'ship this PR' (needs pr_url) or 'go live' on a Marketing post (none). | |
| state | No | For verify: pending when unchecked; give reason and until. | |
| topic | No | For escalate: what the ask is about, in a few words. | |
| until | No | For cut: the end of that window. For verify pending: due date. | |
| where | No | For verify: a test id (path::test), URL or mcp:annsa.spec#N showing the check. | |
| action | Yes | ship: Mark the priority shipped. It only records it; nothing deploys. retract undoes it. A Marketing piece sends published_url (the live link) instead of pr_url, after a person's yes. claim: Take a priority to work on. Starts a spec if there isn't one and gives you spec_id and holder_key. note: Leave a note on the spec about what you did or found. To correct an earlier note, send a new one with supersedes. handoff: Pass the work to another agent or a person, with a note for them. dispatch: Post @claude on the priority's GitHub issue so Claude picks it up there. The person stays assigned. A person's action. unclaim: Unclaim a priority so another agent can pick it up. close: Close the priority in one call, even if it's claimed or has a PR. It stays under Closed with your reason. write: Replace one section of the spec with new text. If the section belongs to someone else, your text is saved as a proposed change for them. verify: Record how you checked Done When lines, by proof kind: a test id for (proof: test), a URL for staging or prod. Add a result (a screen, a check, a measure or a test) so a person sees it. lines=[...] records many at once. covers=partial needs a gap; state=pending needs a reason. media=true gives a screenshot upload link. It doesn't block ship. escalate: Ask a person to decide something; it lands in their Needs you. Send topic, ask, trigger, principle and checked. One open ask per priority; the same topic updates it. resolve: Settle a routine question, like 'is this a duplicate of #N?', the way your principles already decide it. Each outcome fits one kind of question. Returns use_id so you can undo. undo: Reverse your own resolve, by use_id. | |
| commit | No | For verify: a sha in the PR; default head. | |
| covers | No | For verify: partial when the check proves part of it. | |
| pr_url | No | The GitHub PR link. Its body carries 'Annsa-Spec: <spec id>'. | |
| reason | No | Why, in a line. Needed for takeover, close, unclaim, handoff, a park or retract request, and a pending verify line. | |
| result | No | For verify: kind screen|check|measure|test. screen: source, url (claude.ai, GitHub) or data. check: query, output, env. measure: label, before, after, unit. test: id. | |
| use_id | No | For undo: the id resolve gave you. | |
| checked | No | For escalate: what you checked before asking, as 'what — result'. | |
| learned | No | For ship or escalate: what the next agent should know. | |
| options | No | For escalate: the choices, as short labels. | |
| outcome | No | For resolve: keep_both (a merge ask), close_settled, dismiss_came_back or move_row (a stray row). Each fits one kind of ask. | |
| problem | No | For claim: the Problem in one line; a claim on a priority with no spec needs it. | |
| purpose | No | For escalate: decision (pick between options), help (needs a person's hand), gap (something missing) or update (just telling). | |
| request | No | For escalate: park or retract, to ask the person for one. Needs reason. | |
| section | No | For write: the_problem, evidence_and_direction, what_to_build, files_to_touch or done_when. For note: build or how_it_works. | |
| spec_id | No | The spec id from claim, or build_id from annsa.spec. Required for verify. | |
| trigger | No | For escalate: why this needs a person: scope, customers, principle or options. Anything else is settled, not raised. | |
| verdict | No | For unclaim: false_positive marks the finding wrong. still_broken and fixed belong to annsa.file submit. | |
| security | No | For escalate: true if this is a security question. | |
| takeover | No | Claim or unclaim work someone else holds. Needs reason. Another session of your own counts as someone else. | |
| principle | No | For escalate: the rule that would let an agent settle this kind of question next time. | |
| recommend | No | For a decision: the option you would take. | |
| ruled_out | No | Options you ruled out, one per entry as 'option — why'. | |
| spent_usd | No | For note: what the work cost since your last note, in US dollars. Added to the running total. | |
| holder_key | No | From claim; send it on write and ship. | |
| media_type | No | For verify media: image/png, webp, jpeg or video/mp4. | |
| park_until | No | With request=park: date, ships, customers. | |
| supersedes | No | For note: the note this replaces. For principle: the principle this replaces. | |
| assigned_to | No | An agent (like claude-code) or a person's email. Empty unassigns. | |
| lesson_kind | No | For note: gotcha, failure or ruled_out, read first by the next agent. For learn: those or principle. | |
| media_bytes | No | For verify media: bytes (image 5 MB, video 25 MB). | |
| next_action | No | For note or handoff: what should happen next on this priority. | |
| priority_id | No | The long id, instead of priority_number. | |
| feedback_ids | No | For resolve: the rows the ask is about. | |
| published_url | No | For ship of a Marketing piece: the live https link. | |
| quiet_minutes | No | For note: how long you expect to be quiet, in minutes. | |
| spent_minutes | No | For note: minutes spent since your last note. Added to the running total. | |
| include_memory | No | For claim: add related answers and what earlier work learned. | |
| done_when_index | No | For verify: which Done When line, from 1 as annsa.spec lists them. | |
| priority_number | No | The # number, e.g. 20 for #20. | |
| include_principles | No | For claim: add the full text of the principles that apply. | |
| migrations_applied | No | For ship: each migration file, and how you saw it on staging and prod. | |
| same_as_priority_number | No | For escalate: the priority this looks like a duplicate of; a person decides the merge. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| who | No | ||
| record | No | ||
| message | No | ||
| success | No |