Skip to main content
When an agent runs a task, it can call tools to extend its capabilities. During a stream, every tool call produces a tool_start event followed by a tool_end event. You can parse these into typed objects to build UIs, logs, or audit trails.

Tool types

Agents on Compose have access to five tool families: A sixth tool name, swarm_delegate, belongs to the Agents family. It delegates a task to another agent after discovery. See Agents.

Parsing tool events

Use parseToolEvent() to turn a raw tool_start or tool_end event into a typed object. Each tool family has its own shape, so you can inspect the parsed result to know which tool ran.

Common shape

Every tool event shares the same core fields: Each family adds one more field that identifies the subject — model, connector, agent, mode, or domain. The pages below cover each one in detail.

Next

Models

Model discovery and invocation.

Connectors

Connector discovery — MCP and onchain.

Agents

Agent discovery and delegation.

Search

Web search through the stream.

Catalog

Catalog queries for tool selection.