Skip to content

Tools

An agent's tools list takes single tools, toolsets (collections of tools) and built-in tools of the model provider, all selected by type. A plain string is an import path of a function to use as a tool.

agents:
  assistant:
    model: openai:gpt-5-mini
    tools:
      - webbrowser.open  # import path shorthand
      - type: import
        import_path: os.listdir
        name: list_files
        description: List the files of a directory
      - type: bash
        requires_confirmation: true
      - type: read
      - type: grep
      - type: question  # ask the user

Available Tools

type Name Description
import ImportToolConfig Configuration for importing tools from Python modules.
agent_cli Agent CLI Tool Configuration for agent CLI tool.
question Ask User Tool Configuration for user interaction tool.
bash Bash Tool Configuration for bash command execution tool.
delete_path Delete Path Tool Configuration for delete path tool.
download_file Download File Tool Configuration for file download tool.
execute_code Execute Code Tool Configuration for Python code execution tool.
grep Grep Tool Configuration for grep search tool.
list_directory List Directory Tool Configuration for directory listing tool.
read Read Tool Configuration for file reading tool.
builtin (builtin_type: web_search) Web Search Tool Configuration for PydanticAI web search builtin tool.
builtin (builtin_type: code_execution) Code Execution Tool Configuration for PydanticAI code execution builtin tool.
builtin (builtin_type: web_fetch) Web Fetch Tool Configuration for PydanticAI web fetch builtin tool.
builtin (builtin_type: image_generation) Image Generation Tool Configuration for PydanticAI image generation builtin tool.
builtin (builtin_type: memory) Memory Tool Configuration for PydanticAI memory builtin tool.
builtin (builtin_type: file_search) File Search Tool Configuration for PydanticAI file search builtin tool.
builtin (builtin_type: mcp_server) MCP Server Tool Configuration for PydanticAI MCP server builtin tool.
openapi OpenAPI Toolset Configuration for OpenAPI toolsets.
entry_points Entry Point Toolset Configuration for entry point toolsets.
composio Composio Toolset Configuration for Composio toolsets.
process_management Process management Toolset Configuration for process management toolset (code + process management).
skills Skills Toolset Configuration for skills toolset.
code Code Toolset Configuration for code toolset.
file_access File Access Toolset Configuration for file access toolset (supports local and remote filesystems).
vfs VFS Toolset Configuration for VFS registry filesystem toolset.
subagent Subagent Toolset Configuration for subagent interaction tools.
workers Workers Toolset Configuration for worker agent tools.
aggregating Aggregating Toolset Configuration for aggregating multiple toolsets.
code_mode Code Mode Toolset (Deprecated) Configuration for code mode tools.
remote_code_mode Remote Code Mode Toolset Configuration for code mode tools.
search Search Toolset Configuration for web/news search toolset.
notifications Notifications Toolset Configuration for Apprise-based notifications toolset.
config_creation Config Creation Toolset Configuration for config creation with schema validation.
import_tools Import Tools Toolset Configuration for importing individual functions as tools.
plan Plan Toolset Configuration for plan management toolset.
debug Debug Toolset Configuration for debug/introspection toolset.
mcp_discovery MCP Discovery Toolset Configuration for MCP discovery toolset.
cron Cron Toolset Configuration for cron scheduling toolset.
custom Custom Toolset Configuration for custom toolsets.

Single Tool Reference

ImportToolConfig

Configuration for importing tools from Python modules.

ImportToolConfig (YAML)
1
2
3
4
5
6
7
8
9
tools:
- type: import
  import_path: !!python/name:webbrowser.open ''  # Import path to the tool function.
  hints: null  # Hints for tool execution.
  name: null  # Optional override for the tool name.
  description: null  # Optional override for the tool description.
  enabled: true  # Whether this tool is initially enabled.
  requires_confirmation: false  # Whether tool execution needs confirmation.
  metadata: {}  # Additional tool metadata.

Agent CLI Tool

Configuration for agent CLI tool.

Example:

tools:
  - type: agent_cli

Agent CLI Tool (YAML)
1
2
3
4
5
6
7
tools:
- type: agent_cli
  name: null  # Optional override for the tool name.
  description: null  # Optional override for the tool description.
  enabled: true  # Whether this tool is initially enabled.
  requires_confirmation: false  # Whether tool execution needs confirmation.
  metadata: {}  # Additional tool metadata.

Ask User Tool

Configuration for user interaction tool.

Example:

tools:
  - type: question

Ask User Tool (YAML)
1
2
3
4
5
6
7
tools:
- type: question
  name: null  # Optional override for the tool name.
  description: null  # Optional override for the tool description.
  enabled: true  # Whether this tool is initially enabled.
  requires_confirmation: false  # Whether tool execution needs confirmation.
  metadata: {}  # Additional tool metadata.

Bash Tool

Configuration for bash command execution tool.

Example:

tools:
  - type: bash
    timeout: 30.0
    output_limit: 10000
    requires_confirmation: true
    environment:
      type: mock
      deterministic_ids: true

Bash Tool (YAML)
tools:
- type: bash
  timeout: null  # Command timeout in seconds. None means no timeout.
  output_limit: null  # Maximum bytes of output to return.
  environment: null  # Execution environment for command execution. Falls back to agent's env if not set.
  name: null  # Optional override for the tool name.
  description: null  # Optional override for the tool description.
  enabled: true  # Whether this tool is initially enabled.
  requires_confirmation: false  # Whether tool execution needs confirmation.
  metadata: {}  # Additional tool metadata.

Delete Path Tool

Configuration for delete path tool.

Example:

tools:
  - type: delete_path
    requires_confirmation: true
    environment:
      type: local

Delete Path Tool (YAML)
1
2
3
4
5
6
7
8
9
tools:
- type: delete_path
  environment: null  # Execution environment for filesystem access. Falls back to agent's env if not set.
  cwd: null  # Working directory for resolving relative paths.
  name: null  # Optional override for the tool name.
  description: null  # Optional override for the tool description.
  enabled: true  # Whether this tool is initially enabled.
  requires_confirmation: false  # Whether tool execution needs confirmation.
  metadata: {}  # Additional tool metadata.

Download File Tool

Configuration for file download tool.

Example:

tools:
  - type: download_file
    chunk_size: 16384
    timeout: 60.0
    environment:
      type: local

Download File Tool (YAML)
tools:
- type: download_file
  environment: null  # Execution environment for filesystem access. Falls back to agent's env if not set.
  cwd: null  # Working directory for resolving relative paths.
  chunk_size: 8192  # Size of chunks to download in bytes.
  timeout: 30.0  # Request timeout in seconds.
  name: null  # Optional override for the tool name.
  description: null  # Optional override for the tool description.
  enabled: true  # Whether this tool is initially enabled.
  requires_confirmation: false  # Whether tool execution needs confirmation.
  metadata: {}  # Additional tool metadata.

Execute Code Tool

Configuration for Python code execution tool.

Example:

tools:
  - type: execute_code
    requires_confirmation: true
    environment:
      type: mock
      deterministic_ids: true

Execute Code Tool (YAML)
1
2
3
4
5
6
7
8
tools:
- type: execute_code
  environment: null  # Execution environment for code execution. Falls back to agent's env if not set.
  name: null  # Optional override for the tool name.
  description: null  # Optional override for the tool description.
  enabled: true  # Whether this tool is initially enabled.
  requires_confirmation: false  # Whether tool execution needs confirmation.
  metadata: {}  # Additional tool metadata.

Grep Tool

Configuration for grep search tool.

Example:

tools:
  - type: grep
    max_output_kb: 128
    use_subprocess_grep: true
    environment:
      type: local

Grep Tool (YAML)
tools:
- type: grep
  environment: null  # Execution environment for filesystem access. Falls back to agent's env if not set.
  cwd: null  # Working directory for resolving relative paths.
  max_output_kb: 64  # Maximum output size in KB.
  use_subprocess_grep: true  # Use ripgrep/grep subprocess if available (faster for large codebases).
  name: null  # Optional override for the tool name.
  description: null  # Optional override for the tool description.
  enabled: true  # Whether this tool is initially enabled.
  requires_confirmation: false  # Whether tool execution needs confirmation.
  metadata: {}  # Additional tool metadata.

List Directory Tool

Configuration for directory listing tool.

Example:

tools:
  - type: list_directory
    max_items: 1000
    environment:
      type: local

List Directory Tool (YAML)
tools:
- type: list_directory
  environment: null  # Execution environment for filesystem access. Falls back to agent's env if not set.
  cwd: null  # Working directory for resolving relative paths.
  max_items: 500  # Maximum number of items to return (safety limit).
  name: null  # Optional override for the tool name.
  description: null  # Optional override for the tool description.
  enabled: true  # Whether this tool is initially enabled.
  requires_confirmation: false  # Whether tool execution needs confirmation.
  metadata: {}  # Additional tool metadata.

Read Tool

Configuration for file reading tool.

Example:

tools:
  - type: read
    max_file_size_kb: 128
    max_image_size: 1500
    large_file_tokens: 10000
    conversion:
      default_provider: markitdown
    environment:
      type: local

Read Tool (YAML)
tools:
- type: read
  environment: null  # Execution environment for filesystem access. Falls back to agent's env if not set.
  cwd: null  # Working directory for resolving relative paths.
  max_file_size_kb: 64  # Maximum file size in KB for read operations.
  max_image_size: 2000  # Max width/height for images in pixels. Images are auto-resized if larger.
  max_image_bytes: null  # Max file size for images in bytes. Images are compressed if larger.
  large_file_tokens: 12000  # Token threshold for switching to structure map for large files.
  map_max_tokens: 2048  # Maximum tokens for structure map output.
  conversion: null  # Optional conversion config for binary files. If set, converts supported files to markdown.
  name: null  # Optional override for the tool name.
  description: null  # Optional override for the tool description.
  enabled: true  # Whether this tool is initially enabled.
  requires_confirmation: false  # Whether tool execution needs confirmation.
  metadata: {}  # Additional tool metadata.