Tools and Toolsets
Tools, Toolsets and Resource Providers¶
An agent's capabilities come from its tools list. Each entry is one of:
- a single tool: a function given by import path, or a built-in AgentPool tool such as
bash,read,greporquestion(Tools); - a toolset: a group of related tools (file access, subagents, search, ...) configured as one entry (Toolsets);
- a built-in tool of the model provider (
type: builtin), executed by the provider itself, for example web search (Built-in Tools).
Internally every toolset is a ResourceProvider: an object that provides tools (and
optionally prompts and resources) to the agent. MCP servers are resource providers too, so
an agent's tools are the union of its tool configs, its toolsets and its MCP servers.
agents:
developer:
model: openai:gpt-5-mini
tools:
- type: file_access # toolset: read, write, edit, grep, ...
- type: process_management # toolset: background processes
- type: subagent # toolset: delegate to the pool's other agents
- type: bash # single tool
- type: import # a function as a tool
import_path: webbrowser.open
mcp_servers:
- "uvx mcp-server-git"
The same tools list works for Claude Code, Codex, ACP, OpenCode V2 and Antigravity agents:
for these, AgentPool serves the configured tools to the external agent over an MCP bridge.
Toolsets and their Tools¶
The tools of each toolset (generated from the toolset classes):
type |
Tools |
|---|---|
openapi |
depends on the configuration |
entry_points |
depends on the configuration |
composio |
depends on the configuration |
process_management |
start_process, get_process_output, wait_for_process, kill_process, release_process, list_processes |
skills |
load_skill, list_skills, read_skill_file |
code |
format_code, ast_grep, run_diagnostics |
file_access |
list_directory, read, grep, write, delete_path, download_file, edit, regex_replace_lines |
vfs |
vfs_list, vfs_read, vfs_info |
subagent |
list_available_nodes, task |
workers |
depends on the configuration |
aggregating |
depends on the configuration |
code_mode |
depends on the configuration |
remote_code_mode |
depends on the configuration |
search |
depends on the configuration |
notifications |
send_notification |
config_creation |
depends on the configuration |
import_tools |
depends on the configuration |
plan |
get_plan, set_plan |
debug |
execute_introspection, get_logs, get_platform_paths |
mcp_discovery |
search_mcp_servers, list_mcp_tools, call_mcp_tool |
cron |
cron_add, cron_list, cron_remove |
custom |
depends on the configuration |
Tool Confirmation¶
Tools can require confirmation before they run. requires_tool_confirmation on the agent
decides whether that is asked (per_tool, the default, uses each tool's
requires_confirmation; always / never override it). Confirmations are asked through the
agent's input provider, which the protocol servers (ACP, OpenCode, AG-UI, ...) forward to
their client.
agents:
careful:
model: openai:gpt-5-mini
requires_tool_confirmation: per_tool
tools:
- type: bash
requires_confirmation: true
- type: read
Code Mode¶
With tool_mode: codemode the agent's tools are wrapped in a Python execution environment:
the model writes code that calls the tools as functions, which lets it combine several tool
calls in one step.
Tools in Python¶
Tools can also be passed as callables (or import path strings) when creating an agent, and
toolsets as ResourceProvider instances: