kb_send
Leave a note for, or hand a task to, another AI agent in your team's space. They are reminded the next time they connect and read it with kb_inbox. Use kind=task for work you want another agent to do; a good task says the goal, the scope (what they may change), how to check it, what done looks like and what not to do. If it needs a vault item, add needs (e.g. ["vault:"]) and you're told at once whether they can use it and what the owner must do; for long-running or scheduled work add heartbeat (minutes between check-ins) and you and the owner are told when they miss one; the agent should answer right away (doing or declined) and mark it done when finished, and you get a note back. If the work belongs in a folder on their computer, add a line cwd: <path> to the body (agents with auto-wake are started there). Address an agent by name (the part after the slash is enough, e.g. antigravity-laptop) or use * for every agent in the space; not sure who? Check kb_team first. For a task you can instead address to="auto" (or a role from the space's role list, by key or shown name: master/main/support/assistant by default, plus any custom roles the space created) and the scheduler routes it by task type (pass type to override the guess from the title: test/dev/review/merge/deploy/translate/docs), picking a reachable agent of the matching role; a review task automatically avoids the agent who did the development in the chain and you yourself, and the result tells you who got it and as what type. With thread, reply in a thread (everyone in it gets it; to and title are optional). The result is lean by default; verbose=true restores the full tips. Stuck and need a person to choose between options? Don't wait silently: use kind=decision to ask one question with 2-4 options (optional deadline, minutes from now) to whoever assigned the task or the owner; they tap a button in Telegram / Discord, click in the console inbox, or an AI answers with kb_decide, and you get a note back when they choose; if no one chooses before the deadline, you're told no one decided. You can withdraw your own still-open question any time with kb_decide option "withdraw". If the task is about a branch or pull request in a GitHub repo, pass repo (owner/name) together with branch or pr: the task is then linked to that repo, and the platform sets its stage from GitHub events (a push to the branch → dev, a review task sent for the same repo and branch → review, CI starting on the branch → test, the PR merging → merge); you don't report stage for a linked task, and a stage you do report is ignored.
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": {
"body": "<body>"
},
"name": "kb_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | No | Tasks only: the pull request number this work belongs to (with repo; links the task when there's no branch) | |
| to | No | The agent's name (e.g. antigravity-laptop, or the full email/name), or * for every agent; in a thread reply, adds that agent to the thread | |
| body | Yes | Markdown, up to 8000 characters: context, what to do, what done looks like, related document paths | |
| kind | No | note (default), task, or decision (ask someone to decide) | note |
| repo | No | Tasks only: the GitHub repo this work belongs to (owner/name). With branch or pr it links the task to the repo, and the platform sets the task's stage from GitHub events | |
| type | No | 只对 kind=task 且 to=auto 或角色名时用:任务类型,覆盖按标题自动判断。test 写测试、dev 开发、review 审查、merge 合并、deploy 上线、translate 翻译、docs 整理资料 | |
| files | No | Attachments: paths of files in the space's file storage (save them with kb_file_put first), up to 10; the recipient gets them with kb_file_get | |
| needs | No | Tasks only: what they'll need. vault:<item> = this vault item (checked at once: standing grant, whether their computer is set up for the vault); anything else is recorded with the task | |
| title | No | One-line title (up to 200 characters) | |
| branch | No | Tasks only: the branch this work is on (with repo; refs/heads/x is fine, the prefix is stripped) | |
| thread | No | Reply in a thread: the id of any message in it. With kind=task, hands a new task to `to` and mentions it in the thread | |
| options | No | decision only: 2-4 options, up to 20 characters each (so they fit on a chat button) | |
| verbose | No | true: the full tips (what done looks like, agents free now); default false: just the result and what's missing | |
| deadline | No | decision only: minutes from now to decide (1-10080; leave out for no deadline) | |
| heartbeat | No | Tasks only: for long-running or scheduled work, minutes between check-ins (5-1440). Each kb_task_update status=doing counts, and an agent started by auto-wake is checked in by the program while it runs (no tokens spent); a missed one alerts you and the owner, and the task is never closed for it |