Skip to content

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.


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.

ParameterTypeNotes
actioncreate | update | cancel | delete | listRequired
scheduleIdstringRequired for update, cancel, and delete
cronExprstringRequired for create; optional for update; must be a 5-field cron expression
labelstringOptional human-readable label
promptstringInline prompt; mutually exclusive with promptFile
promptFilestringPrompt 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. CronCreate and CronDelete are session-bound and disappear when the conversation ends.
  • cancel disables a schedule.
  • delete removes it permanently.
  • promptFile resolves a basename like memory-grooming, not a filesystem path.

Internal tool: channel.send

Capability labels:

  • channel.send:*
  • channel.send:<channel-name>

Sends a Markdown message to a Talon channel.

ParameterTypeNotes
channelIdstringRequired; this is the configured channel name
contentstringRequired Markdown body
replyTostringOptional 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
externalChatIdstringOptional explicit recipient chat ID on the target channel, for example a Telegram chat_id or a Slack channel ID

Notes:

  • Pass externalChatId to target a specific chat on the channel.
  • When externalChatId is 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. Use channel_list to find a chat ID, or use channel_broadcast.
  • Output is converted to the target connector’s native format automatically.
  • A replyTo reply is always sent as a native reply, regardless of the connector’s replyToTrigger setting.

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.

ParameterTypeNotes
emojistringA single emoji. Required unless remove is true
messageIdstringOptional. 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
removebooleanOptional; removes Talon’s reaction instead of adding one
listbooleanOptional; 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.react is a separate capability from channel.send. A persona with only channel.send cannot 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 messageId must 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 the messages table are delivery keys (on Telegram an update_id), not message IDs. The tool does accept a stored message’s own messages.id.
  • Delegated (A2A) runs cannot react.

See Replies, threads and reactions.


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:

FieldTypeDescription
channelNamestringConfigured channel name, used as channelId in channel_send
channelTypestringConnector type
threadIdstring | nullTalon thread ID of a thread-scoped binding
externalChatIdstring | nullChat 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 threadId and externalChatId are null.

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.

ParameterTypeNotes
contentstringRequired Markdown body
replyTostringOptional thread or message ID, applied to every delivery

Returns a summary:

FieldTypeDescription
deliverednumberNumber of chats that received the message
skippedarrayChannels skipped because the binding has no chat (no_thread_binding)
failedarrayChannels 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.

Internal tool: memory.access

Capability labels:

  • memory.access:thread

Reads and writes per-thread memory items.

ParameterTypeNotes
operationread | write | delete | listRequired
keystringRequired for read and delete; optional for write
valueanyRequired for write; non-string values are JSON-stringified
namespacestringOptional; maps to the memory item type

Notes:

  • When write omits key, Talon generates a UUID.
  • Supported namespaces map to fact, summary, and note.
  • Unknown namespaces fall back to note.

Internal tool: net.http

Capability labels:

  • net.http:egress

Proxies outbound HTTP and HTTPS requests through the host.

ParameterTypeNotes
methodGET | POST | PUT | PATCH | DELETE | HEADRequired
urlstringRequired
headersobjectOptional string header map
bodystringOptional request body
timeoutMsnumberOptional; defaults to 30000, capped at 120000

Notes:

  • Only http: and https: URLs are allowed.
  • Domain allowlisting is enforced by the host-side handler.
  • An empty allowlist means the capability label is the only gate.

Internal tool: db.query

Capability labels:

  • db.query:own

Runs restricted read-only SQL queries against the Talon SQLite database.

ParameterTypeNotes
sqlstringRequired; must be a simple SELECT statement
paramsarrayOptional prepared-statement parameters
limitnumberOptional; defaults to 100, maximum 1000

Allowed tables:

  • memory_items
  • schedules
  • messages
  • threads

Restrictions:

  • only SELECT is 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

Internal tool: execution.env

Capability labels:

  • execution.env

Manages isolated Sprite execution environments. Requires sprites.enabled: true in talond.yaml.

ParameterTypeNotes
actioncreate | exec | upload | download | checkpoint | restore | destroyRequired
envIdstringExecution environment identifier
commandstringCommand to run for exec
cwdstringOptional working directory for exec
timeoutMsnumberOptional command timeout in milliseconds
detachbooleanStart the process in detached mode
envobjectOptional environment variables for exec
sourcePathstringSource path for upload and download
destinationPathstringDestination path for upload and download
recursivebooleanWhether upload recurses into directories
overwritebooleanWhether download may overwrite an existing file
checkpointIdstringCheckpoint to use for restore
labelstringOptional label for checkpoint
baseSnapshotstringOptional base snapshot for create
workingDirectorystringOptional working directory for create
autoDestroybooleanWhether the created environment is destroyed automatically
resourceLimitsobjectOptional cpus, memoryMb, and diskGb overrides for create

Notes:

  • Create a checkpoint before risky commands or repeated test runs. restore rolls the same environment back to that checkpoint.

Internal tool: subagent.invoke

Capability labels:

  • subagent.invoke

Runs a named sub-agent synchronously and returns its structured result.

ParameterTypeNotes
namestringRequired sub-agent name
inputobjectOptional JSON object passed through to the sub-agent

Built-in sub-agents shipped in this repo:

NameModelPurpose
session-summarizerclaude-sonnet-4-6Compress long conversation history for session resumption
memory-retrieverclaude-haiku-4-5Retrieve relevant memory items for a query
memory-groomerclaude-haiku-4-5Consolidate and prune memory entries
file-searcherclaude-haiku-4-5Search files and return ranked snippets
session-observerclaude-sonnet-4-6Generate dated, prioritized observations for observational memory
session-reflectorclaude-sonnet-4-6Consolidate observations when the log grows too large
spark-codergpt-5.3-codex-sparkFast code generation via structured file operations (requires OPENAI_API_KEY)
visionclaude-haiku-4-5Answer 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 subagents array.
  • memory-groomer accepts an optional protectedKeyPrefixes array in its input, for example ["mail:", "calendar:"]. Memory items whose key starts with one of the prefixes are never pruned or consolidated.
  • vision takes { "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.

Internal tool: subagent.background

Capability labels:

  • subagent.background

Starts and manages long-running background agent tasks.

ParameterTypeNotes
actionspawn | status | cancel | result | profilesRequired
promptstringRequired for spawn
taskIdstringUsed by status, cancel, and result
providerstringOptional provider override for spawn
profilestringOptional persona profile name for spawn
workingDirectorystringOptional working directory for spawn
timeoutMinutesnumberOptional 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 profile uses 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.

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.

ParameterTypeNotes
target_personastringRequired; name of the destination persona, as returned by persona_list
messagestringRequired; the complete brief for the target persona
await_replybooleanOptional; if true, waits until the target persona finishes and returns its result
timeout_msintegerOptional wait timeout for await_reply; defaults to 300000, maximum 1800000
cancel_on_timeoutbooleanOptional; 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 a2a limits in the config schema reference.
  • With await_reply: true, the result comes back as text in result. The wait includes queue time.
  • If the state is timeout, the delegated task keeps running. Fetch it later with persona_task_status or stop it with persona_task_cancel. With cancel_on_timeout: true the task is canceled and the state is canceled.
  • A failed state is final. Talon does not retry automatically.

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.

ParameterTypeNotes
task_idstringRequired; task ID returned by persona_send
wait_msintegerOptional; 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_send call that timed out before the target persona finished.
  • wait_ms is useful for tasks you expect to finish within a known window. Set it to avoid busy polling loops.
  • Any persona.send grant exposes this tool, including a scoped one.

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.

ParameterTypeNotes
task_idstringRequired; task ID returned by persona_send
reasonstringOptional 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.

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"]
}
]
FieldTypeDescription
namestringPersona name, used as target_persona in persona_send
descriptionstring | nullPersona description
skillsstring[]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_send if you need to discover which personas are available and what they can do.

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.

ParameterTypeNotes
operationlist_images | get_image | list_findings | get_findingRequired
imageIdstringRequired for get_image; optional filter for list_findings
findingIdstringRequired for get_finding
limitintegerOptional for the two list operations; defaults to 20, allowed range 1 to 100
cursorstringOptional for the two list operations; the nextCursor value from a previous result
OperationReturns
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_images includes 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 nextCursor of null means there are no more results.
  • Reading a Finding does not run a new Inspection. To ask a new question about an image, call subagent_invoke with the vision sub-agent.
  • The tool needs no vision assignment and no subagent.invoke capability. See the vision guide.