Host tools reference
Talon exposes 16 built-in tools to agents through the internal MCP server __talond_host_tools.
At the MCP layer the tool names use underscores, for example memory_access.
Inside the daemon the corresponding internal names use dots, for example memory.access.
Every host-tool call is:
- filtered by the persona’s capability labels before the tool is even listed
- checked again at the bridge before execution
- executed on the host, not inside the sandbox
Each tool can have a companion instruction file at templates/tool-instructions/<capability.prefix>.md. When a persona has access to a tool, its instruction file is automatically injected into the system prompt. Files must start with a ## heading; empty or missing files are silently ignored. See Tool instructions for details.
schedule_manage
Section titled “schedule_manage”Internal tool: schedule.manage
Capability labels:
schedule.manage:own
Creates, updates, cancels, deletes, or lists schedules owned by the current persona. Schedules are durable: they are stored in SQLite and survive daemon restarts and session resets.
| Parameter | Type | Notes |
|---|---|---|
action | create | update | cancel | delete | list | Required |
scheduleId | string | Required for update, cancel, and delete |
cronExpr | string | Required for create; optional for update; must be a 5-field cron expression |
label | string | Optional human-readable label |
prompt | string | Inline prompt; mutually exclusive with promptFile |
promptFile | string | Prompt alias from the persona’s prompts/ directory; mutually exclusive with prompt |
Notes:
- This tool currently manages cron schedules only.
- Use this instead of model-native cron helpers.
CronCreateandCronDeleteare session-bound and disappear when the conversation ends. canceldisables a schedule.deleteremoves it permanently.promptFileresolves a basename likememory-grooming, not a filesystem path.
channel_send
Section titled “channel_send”Internal tool: channel.send
Capability labels:
channel.send:*channel.send:<channel-name>
Sends a Markdown message to a Talon channel.
| Parameter | Type | Notes |
|---|---|---|
channelId | string | Required; this is the configured channel name |
content | string | Required Markdown body |
replyTo | string | Optional message ID to send this as a native reply to: the (id …) value from a [Replying to …] or [Reaction: …] header. Ignored on channels without native replies |
externalChatId | string | Optional explicit recipient chat ID on the target channel, for example a Telegram chat_id or a Slack channel ID |
Notes:
- Pass
externalChatIdto target a specific chat on the channel. - When
externalChatIdis omitted, Talon resolves the recipient from the current thread. On a schedule that a persona created, that is the chat where the schedule was created. - The tool returns an error when it has no recipient. This happens on schedules created with
talonctl add-schedule, which have no origin chat. Usechannel_listto find a chat ID, or usechannel_broadcast. - Output is converted to the target connector’s native format automatically.
- A
replyToreply is always sent as a native reply, regardless of the connector’sreplyToTriggersetting.
channel_react
Section titled “channel_react”Internal tool: channel.react
Capability labels:
channel.react:*
Places an emoji reaction on a message in the current conversation, or removes Talon’s reaction from it. Supported on Telegram, WhatsApp Baileys and WhatsApp Business. Other channels return an error.
| Parameter | Type | Notes |
|---|---|---|
emoji | string | A single emoji. Required unless remove is true |
messageId | string | Optional. Leave out to react to the message that started the run. Otherwise the ID of another message in this conversation: an (id …) value from a [Replying to …] or [Reaction: …] header, or an ID from list |
remove | boolean | Optional; removes Talon’s reaction instead of adding one |
list | boolean | Optional; does not react, and returns the conversation’s recent messages (messageId, from, text), newest first |
Notes:
- The tool takes no channel or chat argument: it only acts on the conversation the run belongs to.
channel.reactis a separate capability fromchannel.send. A persona with onlychannel.sendcannot react.- To acknowledge without sending text, react and then make the final response exactly
NO_REPLY. A response that is only that word is not delivered to the chat. - Telegram accepts only its standard reaction set. An emoji outside it returns an error that lists the allowed emoji.
- A run that was not started by a channel message (a schedule, a user reaction, a background agent) has no default target and must pass
messageId. - An explicit
messageIdmust be known to the message ledger for this conversation. An unknown ID is not sent to the channel: the tool returns an error listing the recent messages and their real IDs. The numbers stored in themessagestable are delivery keys (on Telegram anupdate_id), not message IDs. The tool does accept a stored message’s ownmessages.id. - Delegated (A2A) runs cannot react.
See Replies, threads and reactions.
channel_list
Section titled “channel_list”Internal tool: channel.list
Capability labels:
channel.send:*
Lists the channels bound to the calling persona and, per channel, the chats it can deliver to. The tool takes no parameters. A channel.send grant also exposes this tool.
Each entry has these fields:
| Field | Type | Description |
|---|---|---|
channelName | string | Configured channel name, used as channelId in channel_send |
channelType | string | Connector type |
threadId | string | null | Talon thread ID of a thread-scoped binding |
externalChatId | string | null | Chat ID to pass as externalChatId in channel_send |
Notes:
- Use this on CLI-created schedules to pick an explicit target for
channel_send. - A channel-default binding has no chat, so
threadIdandexternalChatIdarenull.
channel_broadcast
Section titled “channel_broadcast”Internal tool: channel.broadcast
Capability labels:
channel.send:*
Sends one message to every chat the calling persona is bound to, across all bound channels. A channel.send grant also exposes this tool.
| Parameter | Type | Notes |
|---|---|---|
content | string | Required Markdown body |
replyTo | string | Optional thread or message ID, applied to every delivery |
Returns a summary:
| Field | Type | Description |
|---|---|---|
delivered | number | Number of chats that received the message |
skipped | array | Channels skipped because the binding has no chat (no_thread_binding) |
failed | array | Channels where the connector returned an error (send_failed) |
Notes:
- This is deliberate fan-out. Use it only when the schedule has no specific origin chat.
- Channel-default bindings are skipped and reported in
skipped.
memory_access
Section titled “memory_access”Internal tool: memory.access
Capability labels:
memory.access:thread
Reads and writes per-thread memory items.
| Parameter | Type | Notes |
|---|---|---|
operation | read | write | delete | list | Required |
key | string | Required for read and delete; optional for write |
value | any | Required for write; non-string values are JSON-stringified |
namespace | string | Optional; maps to the memory item type |
Notes:
- When
writeomitskey, Talon generates a UUID. - Supported namespaces map to
fact,summary, andnote. - Unknown namespaces fall back to
note.
net_http
Section titled “net_http”Internal tool: net.http
Capability labels:
net.http:egress
Proxies outbound HTTP and HTTPS requests through the host.
| Parameter | Type | Notes |
|---|---|---|
method | GET | POST | PUT | PATCH | DELETE | HEAD | Required |
url | string | Required |
headers | object | Optional string header map |
body | string | Optional request body |
timeoutMs | number | Optional; defaults to 30000, capped at 120000 |
Notes:
- Only
http:andhttps:URLs are allowed. - Domain allowlisting is enforced by the host-side handler.
- An empty allowlist means the capability label is the only gate.
db_query
Section titled “db_query”Internal tool: db.query
Capability labels:
db.query:own
Runs restricted read-only SQL queries against the Talon SQLite database.
| Parameter | Type | Notes |
|---|---|---|
sql | string | Required; must be a simple SELECT statement |
params | array | Optional prepared-statement parameters |
limit | number | Optional; defaults to 100, maximum 1000 |
Allowed tables:
memory_itemsschedulesmessagesthreads
Restrictions:
- only
SELECTis allowed UNION,EXCEPT,INTERSECT, CTEs, and subqueries are rejected- Talon auto-injects thread and persona scoping where applicable
- the query runs through a read-only SQLite connection
execution_env
Section titled “execution_env”Internal tool: execution.env
Capability labels:
execution.env
Manages isolated Sprite execution environments. Requires sprites.enabled: true in talond.yaml.
| Parameter | Type | Notes |
|---|---|---|
action | create | exec | upload | download | checkpoint | restore | destroy | Required |
envId | string | Execution environment identifier |
command | string | Command to run for exec |
cwd | string | Optional working directory for exec |
timeoutMs | number | Optional command timeout in milliseconds |
detach | boolean | Start the process in detached mode |
env | object | Optional environment variables for exec |
sourcePath | string | Source path for upload and download |
destinationPath | string | Destination path for upload and download |
recursive | boolean | Whether upload recurses into directories |
overwrite | boolean | Whether download may overwrite an existing file |
checkpointId | string | Checkpoint to use for restore |
label | string | Optional label for checkpoint |
baseSnapshot | string | Optional base snapshot for create |
workingDirectory | string | Optional working directory for create |
autoDestroy | boolean | Whether the created environment is destroyed automatically |
resourceLimits | object | Optional cpus, memoryMb, and diskGb overrides for create |
Notes:
- Create a checkpoint before risky commands or repeated test runs.
restorerolls the same environment back to that checkpoint.
subagent_invoke
Section titled “subagent_invoke”Internal tool: subagent.invoke
Capability labels:
subagent.invoke
Runs a named sub-agent synchronously and returns its structured result.
| Parameter | Type | Notes |
|---|---|---|
name | string | Required sub-agent name |
input | object | Optional JSON object passed through to the sub-agent |
Built-in sub-agents shipped in this repo:
| Name | Model | Purpose |
|---|---|---|
session-summarizer | claude-sonnet-4-6 | Compress long conversation history for session resumption |
memory-retriever | claude-haiku-4-5 | Retrieve relevant memory items for a query |
memory-groomer | claude-haiku-4-5 | Consolidate and prune memory entries |
file-searcher | claude-haiku-4-5 | Search files and return ranked snippets |
session-observer | claude-sonnet-4-6 | Generate dated, prioritized observations for observational memory |
session-reflector | claude-sonnet-4-6 | Consolidate observations when the log grows too large |
spark-coder | gpt-5.3-codex-spark | Fast code generation via structured file operations (requires OPENAI_API_KEY) |
vision | claude-haiku-4-5 | Answer one question about images in the current thread and save a text Finding |
Notes:
- A persona can only invoke the sub-agents listed in its
subagentsarray. memory-groomeraccepts an optionalprotectedKeyPrefixesarray in its input, for example["mail:", "calendar:"]. Memory items whose key starts with one of the prefixes are never pruned or consolidated.visiontakes{ "imageIds": [...], "question": "..." }. It returns and saves a Finding. It runs only inside a foreground run, so a background agent cannot call it. See the vision guide.
background_agent
Section titled “background_agent”Internal tool: subagent.background
Capability labels:
subagent.background
Starts and manages long-running background agent tasks.
| Parameter | Type | Notes |
|---|---|---|
action | spawn | status | cancel | result | profiles | Required |
prompt | string | Required for spawn |
taskId | string | Used by status, cancel, and result |
provider | string | Optional provider override for spawn |
profile | string | Optional persona profile name for spawn |
workingDirectory | string | Optional working directory for spawn |
timeoutMinutes | number | Optional timeout override for spawn; minimum effective value is 15 |
Notes:
- Call
action: "profiles"first if the agent needs to discover which persona profiles are available. - A
profileuses another loaded persona’s prompt, skills, model, provider, and capabilities. - Background tasks return a task ID immediately and later deliver completion back into the originating thread.
persona_send
Section titled “persona_send”Internal tool: persona.send
Capability labels:
persona.send:*persona.send:<persona-name>
Delegates a self-contained task to another persona via the A2A protocol and optionally waits for the reply.
| Parameter | Type | Notes |
|---|---|---|
target_persona | string | Required; name of the destination persona, as returned by persona_list |
message | string | Required; the complete brief for the target persona |
await_reply | boolean | Optional; if true, waits until the target persona finishes and returns its result |
timeout_ms | integer | Optional wait timeout for await_reply; defaults to 300000, maximum 1800000 |
cancel_on_timeout | boolean | Optional; with await_reply, cancels the delegated task if the wait times out. Defaults to false |
Notes:
- The target sees only
message. It gets no conversation history, summary, images, or findings from the calling thread. Write a complete brief. persona.send:*allows delegation to any persona.persona.send:<persona-name>restricts delegation to that persona. List several labels to allow several targets.- Tasks sent to a busy persona are queued, not rejected. See the
a2alimits in the config schema reference. - With
await_reply: true, the result comes back as text inresult. The wait includes queue time. - If the state is
timeout, the delegated task keeps running. Fetch it later withpersona_task_statusor stop it withpersona_task_cancel. Withcancel_on_timeout: truethe task is canceled and the state iscanceled. - A
failedstate is final. Talon does not retry automatically.
persona_task_status
Section titled “persona_task_status”Internal tool: persona.task_status
Capability labels:
persona.send:*persona.send:<persona-name>
Fetches the current status or final result of a delegated A2A task.
| Parameter | Type | Notes |
|---|---|---|
task_id | string | Required; task ID returned by persona_send |
wait_ms | integer | Optional; wait this many ms for the task to reach a terminal state. Defaults to 0 |
Returns the task status object. submitted and working mean the task is not done. Terminal states are completed, failed, and canceled. A completed task has its text in result.
Notes:
- Use this after a
persona_sendcall that timed out before the target persona finished. wait_msis useful for tasks you expect to finish within a known window. Set it to avoid busy polling loops.- Any
persona.sendgrant exposes this tool, including a scoped one.
persona_task_cancel
Section titled “persona_task_cancel”Internal tool: persona.task_cancel
Capability labels:
persona.send:*persona.send:<persona-name>
Cancels a task that the calling persona delegated with persona_send. A queued task is dropped and a running one is stopped.
| Parameter | Type | Notes |
|---|---|---|
task_id | string | Required; task ID returned by persona_send |
reason | string | Optional short reason, recorded on the canceled task |
Returns { task_id, state, canceled }. canceled: true means this call canceled the task. canceled: false means the task had already finished, and state is its final state.
Notes:
- A persona can only cancel tasks that it delegated itself from the current thread.
- Operators can cancel any task with
talonctl a2a cancel.
persona_list
Section titled “persona_list”Internal tool: persona.list
Capability labels:
persona.send:*persona.send:<persona-name>
Lists the loaded personas that the calling persona may delegate to.
Returns an array of persona cards:
[ { "name": "researcher", "description": "Deep research and web search specialist", "skills": ["web-research", "summarize"] }]| Field | Type | Description |
|---|---|---|
name | string | Persona name, used as target_persona in persona_send |
description | string | null | Persona description |
skills | string[] | Skills attached to the persona |
Notes:
- The calling persona is excluded from the results.
- With scoped
persona.send:<persona-name>labels, the list contains only the allowed personas. - Call this before
persona_sendif you need to discover which personas are available and what they can do.
image_lookup
Section titled “image_lookup”Internal tool: image.lookup
Capability labels:
image.read:thread
Lists the images in the current thread and reads the Findings that earlier vision Inspections saved. The tool returns text only. It never returns pixels, file paths, or URLs, and it never calls a model.
| Parameter | Type | Notes |
|---|---|---|
operation | list_images | get_image | list_findings | get_finding | Required |
imageId | string | Required for get_image; optional filter for list_findings |
findingId | string | Required for get_finding |
limit | integer | Optional for the two list operations; defaults to 20, allowed range 1 to 100 |
cursor | string | Optional for the two list operations; the nextCursor value from a previous result |
| Operation | Returns |
|---|---|
list_images | { images, nextCursor } with current image descriptors, newest first |
get_image | { image } with the current state of one image |
list_findings | { findings, nextCursor } |
get_finding | { finding } with the saved answer and extracted text |
Notes:
- The thread comes from the run context. The tool rejects any field that does not belong to the chosen operation.
list_imagesincludes rejected and unavailable images. Images that are still processing are omitted.- A cursor is bound to the operation, filter, and thread that issued it. A
nextCursorofnullmeans there are no more results. - Reading a Finding does not run a new Inspection. To ask a new question about an image, call
subagent_invokewith thevisionsub-agent. - The tool needs no
visionassignment and nosubagent.invokecapability. See the vision guide.