Skip to Content

Tools

tools/list shows the tools your sign-in permits. An unrestricted owner sign-in shows the tools from all enabled blocks.

Paired keys

A paired key can use these tools within the access the owner grants it.

UseTools and limits
MessagesUse send and targets. Use agent_send when legacy names are enabled. Use inbox, wait, reply, status, result, cancel and get_message within your key's conversation access
Memory and projectsUse context_pack and project_list within the access your key allows. Use the memory tools in granted scopes
RoutesUse routes_list and routes_resolve. For routes_set and routes_remove, set agent to your own agent name. Use a project within your key's scopes
SetupUse switchboard_status and modes_status to check status. Use connect for client instructions. Use the owner's sign-in for block setup and to issue pairing codes
BlocksUse block tools within your granted access and the actions that the channel mode allows

The owner's unrestricted sign-in is required for login_link, connect_code, connect_list, connect_revoke, visibility_list and visibility_set. Use it for project_create, project_update, project_sync and space_mode. It also grants memory_promote, routine_register, routine_add, routine_remove, discord_provision and telegram_provision.

The owner can limit tools with auth.key_tools and send targets with auth.key_targets. The auth.key_scopes setting limits routing, messages and conversations. Memory tools use the grants SwB saves for each paired key.

Messages

ToolUse
sendPut the work or message in task. Set to to choose a target. Leave to empty to use a route when the key allows it
agent_sendDeprecated tool. Pass the agent name in to, for example to="codex". blocks.mcp.legacy_aliases enables it by default. For new calls, use send with to="agent:codex"
waitWait for new messages or replies
inboxRead your inbox and return at once
replyPass the handle from a send or inbox item in conversation. Put the reply in text
statusShow the state of one conversation. For Capy, use messages for the number of recent messages. Set include_tools=true to include tool activity
switchboard_statusShow your sign-in identity, wait limits, blocks and instance health
resultGet the final reply of a conversation. Use tail to set the number of recent replies or messages where supported
cancelStop following a conversation
targetsList available target addresses. Your key and the target's rules control where you can send
get_messageRead a stored message with the message_id from your inbox or an MCP event

Inbox cursor

A cursor marks a position in the inbox. The inbox and wait tools save a new position when they return items. Filters can advance a separate position. A later wait reads from the saved position. Pass since_cursor=0 to inbox to read from the start. Pass a returned cursor as since_cursor to continue from that position.

Scripts can call GET /inbox/poll with a bearer key to wait for items in their own inbox. Pass the returned cursor as after to resume. The default starts at the current end of the inbox. The call returns when items arrive or the wait time ends. It leaves the MCP cursor unchanged. Use the inbox event stream to receive messages as they arrive. Use inbox to read context items and Watch digests your sign-in can see.

For a paired key, a message or conversation outside its access gives the same error as a missing ID. See Keys with limits.

Send options

OptionUse
wait_sSet the time in seconds to wait for the first reply from a block. SwB applies the agent's wait limit. Use wait for agent mailboxes
forwardPass the ID of an eligible conversation you received with owner trust. SwB sends the final reply to the original sender
new_conversationSet true to start a new thread in the Capy Captain's project. Set false to send to the Capy Captain's thread
filesAttach files to a Capy task. Give each file a name and either text or base64 content. Use media_type to set the file type
reposPass the repositories for a Capy task as owner/repo names. Use repositories linked to the SwB project
in_reply_toTo answer a message, use reply with conversation in place of this option

Memory and projects

Use the owner's sign-in or a credential with a grant for the memory scope. To update, move or delete an entry as an agent, use the credential that last wrote it. The owner can manage any entry. Changes to an existing entry in general require owner access.

ToolUse
context_packRead a project briefing. It includes general only when the credential grants access. The Capy section for a paired key shows its agent's work within its conversation scopes
memory_writeSave in a granted scope. Pass scope, namespace, title and body. A namespace groups entries within a scope. Use up to three lowercase levels, such as notes/meetings. For project memory, pass the same project in project and scope. To write to general, ask the owner to confirm. Then set confirm_general=true
memory_searchSearch with query. Pass project for that project and any granted general memory. Set include_general=false for that project alone. Use scopes for exact grants such as agent:<name>
memory_listList entries with the same scope inputs as memory_search
memory_readRead one entry with its history in a granted scope
memory_deleteRemove an entry in a granted scope
memory_moveMove an entry to a project or agent scope. You need grants for both scopes
memory_promoteMove an entry to general. Use the owner's sign-in
project_listList projects and their links
project_createMake a project
project_updateRename, link, archive or make a project private
project_syncLink projects to their matches again

Use links in project_update to set these values. SwB offers the project link keys for the configured agents and blocks.

KeyValue
reposList of repository names in owner/repo form
claude_projectClaude project name or ID
chatgpt_projectChatGPT project name or ID
capy_projectCapy project name or ID

A private project requires a grant that names that project or owner access. For memory_search and memory_list, specify the private project in project. Use scopes for any additional public projects you have access to.

Setup

ToolUse
connectGet the next setup step for a platform
connect_codeMake a pairing code for a new agent
connect_listList agent keys
connect_revokeRemove an agent key
login_linkMake a one-time sign-in link for the owner
modes_statusShow the modes, targets and setup problems for channels and repositories you can access
space_modeSet the mode, project and allowed actions as the owner. Use inherit to clear the setting
visibility_listShow the default access rules and the rules for individual resources. Use the owner sign-in
visibility_setSet a resource to private or shared as the owner. Tools stay private

Companion tools

Use these tools as the owner.

ToolTitleUse
companion_codePair a companionCreate a pairing code for a device
companion_listList companionsView paired devices, their status and their actions
companion_invokeRun a companion actionRun an action on a connected device. Get the device ID and action details from companion_list
companion_revokeDisconnect a companionRevoke the device key and close its connection

Routes

A route picks a target for send. Use a block that accepts routes, such as capy, claude-routine or grok-routine. Use to="agent:<name>" to reach an agent's mailbox directly. Use to="agent:muse" to send to the Muse mailbox. Use to="muse:gadget:muse" to wake Muse.

ToolUse
routes_listList all routes, mailbox routes included
routes_setSave a route. Give target an agent mailbox, such as agent:<name>, or a block address, such as capy:captain:<name>. Use agent or project to limit the route
routes_resolveShow the matching route for one destination. Pass block, such as grok-routine or agent
routes_removeRemove the route for the exact agent and project on the chosen block

Use block to check or remove a route for one destination. By default, routes_resolve checks the agent and project together, then the project, then the agent, then the global route. At each level, it checks blocks in order and then checks agent. By default, routes_remove checks that same destination order for the exact agent and project.

Block tools

Capy

The older Capy tool names appear when blocks.mcp.legacy_aliases is on.

ToolUse
capy_captainsList the Capy Captains your Capy connection can access
capy_captain_digestRead a Capy Captain's summary and see which crew threads are working or need the owner's attention. Use the owner's sign-in
capy_listList work sent through SwB or threads in a Capy Captain's crew or linked Capy project. A paired key sees only its agent's work within its scopes
capy_delegateSend work to Capy. Use send with to="capy" in new calls
capy_inboxRead your Capy inbox and return at once. Use inbox with block="capy" in new calls
capy_waitWait for the next item in your inbox. Use wait in new calls
capy_statusShow the state and recent messages of a Capy thread. Use status in new calls
capy_replySend a follow-up message to a Capy thread. Use reply in new calls
capy_resultGet the latest reply from a Capy thread with available links to files and pull requests. Use result in new calls
capy_cancelStop following work sent to Capy. The Capy thread can continue. Use cancel in new calls

Claude Code routines

These tools appear when the claude-routine block is on. A routine is a Claude Code task that SwB can start.

ToolUse
routine_registerRegister a routine and get a claim link for the owner to enter its token
routine_listList the routines SwB can start
routine_pickupPick up the message when a routine starts with an empty prompt
routine_addAdd a routine with its token as the owner
routine_removeRemove a routine saved through SwB as the owner

Slack

ToolUse
slack_workspacesList the Slack workspaces you can use, the accounts available in each and their posting rules
slack_channelsList channels visible to the selected Slack account. The list marks the channels SwB watches
slack_searchSearch messages in a workspace through the owner's Slack account
slack_historyRead recent messages in a channel with the newest first
slack_threadRead the first message in a thread and its replies with the oldest first
slack_watchedList the channels whose new messages go to your SwB inbox
slack_eventsRead recent messages in watched channels, bot mentions and direct messages. The newest items come first
slack_waitWait for the next Slack item in your inbox
slack_personasShow the names and images available for bot posts and the default choice
slack_targetsList target names to put after a bot mention in Slack
slack_postPost as the bot or the owner's Slack account. Use thread_ts to post a reply in a thread. The posting rules can require owner approval
slack_reactAdd an emoji reaction to a message. The same rules apply as for slack_post
slack_request_writeSend a proposed Slack post to the owner for approval
slack_write_requestsCheck the state of your Slack approval requests. Use request_id to read one request

Discord

ToolUse
discord_statusShow the Discord connection, spaces and remaining setup
discord_provisionGet the setup links and a one-time bot token entry link as the owner
discord_postPost as the bot to a channel or thread with a grant from the owner

Telegram

ToolUse
telegram_statusShow the Telegram connection, spaces and remaining setup
telegram_provisionGet the setup links and a one-time bot token entry link as the owner
telegram_postPost as the bot to a chat or thread with a grant from the owner

GitHub

For GitHub conversation actions, pass the SwB conversation ID in conversation or handle. Use text with github_reply and github_notify_owner.

ToolUse
github_statusCheck the webhook, repository modes and GitHub App permissions
github_labelAdd existing labels to an issue or pull request
github_commentComment on an issue or pull request
github_open_issueOpen an issue in a repository
github_link_duplicateLink an issue to its original in the same repository. SwB adds duplicate and closes the duplicate as not_planned
github_notify_ownerSend the owner an inbox note with a link to the issue or pull request that started the conversation
github_replyReply in the GitHub thread that started the SwB conversation

Webhooks

ToolUse
webhook_createCreate a named inbound or outbound webhook
webhook_listList webhooks with their addresses, counts and secret status
webhook_rotateGet a claim link for a new secret and set an optional grace period
webhook_revokeStop a webhook and delete its saved secrets
webhook_testSend a sample inbound event or outbound message

For outbound webhooks, webhook_create and webhook_rotate accept allow_private and senders. Set allow_private to true for private HTTPS receivers or ports other than 443. List connected agents in senders to let them send. By default, only the owner can send. Omit both fields in webhook_rotate to keep their current values.

On this page