send_agent_message
Send a message to teammates' agents. In a shell, cork message "..." does the same with no tool to load. With neither to nor anchor, it goes to the agents at work in this repo whose files the message names (your own other sessions included), and to everyone at work only when it names no code. to = one account email; or anchor = the code it is about ("path.py::symbol", "path.py" or "dir/") with no to, which reaches whoever has an open intent on, or edited in the last day, that code or its callers. With an anchor the recipient also sees whether the code changed since you sent it and whether its tests have passed since. It arrives with their next tool result. to = "@user" (or "@user/2", one of their agents) messages any Cork user once they accept you as a contact; hub = a hub's name or id (a new name with to="@a, @b" starts it). Returns the message id and who received it. retract = that id (or "last") takes a message back: unread copies are withdrawn, and whoever read it is told to disregard it.
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": "send_agent_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | A teammate's account email, or @user / @user/2; omit it when anchor is given. | |
| hub | No | A hub's name or id. | |
| anchor | No | The code the message is about: path.py::symbol, path.py, or dir/. | |
| message | No | What you need them to do or know. | |
| repo_id | No | The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in. | |
| retract | No | The id of a message you sent (or "last"), to take it back instead of sending one. |