Share feedback
Answers are generated based on the documentation.

Tools

Tools give agents the ability to interact with the world — read files, run commands, search the web, query databases, and more.

How Tools Work

When an agent needs to perform an action, it makes a tool call. The docker-agent runtime executes the tool and returns the result to the agent, which can then use it to continue its work.

  1. Agent receives a user message
  2. Agent decides it needs to use a tool (e.g., read a file)
  3. docker-agent executes the tool and returns the result
  4. Agent incorporates the result and responds
Note

Tool Confirmation

By default, docker-agent asks for user confirmation before executing tools that have side effects (shell commands, file writes). Use --yolo to auto-approve all tool calls.

Built-in Tools

docker-agent ships with several built-in tools that require no external dependencies. Each is enabled by adding its type to the agent's toolsets list:

ToolDescription
FilesystemRead, write, list, search, and navigate files and directories
ShellExecute synchronous and background shell commands
ThinkStep-by-step reasoning scratchpad for planning and decision-making
TodoTask list management for complex multi-step workflows
TasksPersistent task database shared across sessions
MemoryPersistent key-value storage backed by SQLite
FetchRead content from HTTP/HTTPS URLs (GET only)
ScriptDefine custom shell scripts as named tools
LSPConnect to Language Server Protocol servers for code intelligence
APICreate custom tools that call HTTP APIs without writing code
OpenAPIGenerate tools from an OpenAPI 3.x document
RAGRetrieval-augmented generation over indexed sources
Model PickerLet the agent pick between several models per turn
User PromptAsk users questions and collect interactive input
Open URLOpen a fixed URL in the user's default browser
Transfer TaskDelegate tasks to sub-agents (auto-enabled with sub_agents)
Background AgentsDispatch work to sub-agents concurrently
HandoffHand the conversation off to another local agent in the same config (auto-enabled with handoffs:)
A2AConnect to remote agents via the Agent-to-Agent protocol
MCP CatalogDiscover and activate remote MCP servers from the Docker MCP Catalog on demand

MCP Tools

docker-agent supports the Model Context Protocol (MCP) for extending agents with external tools. There are three ways to connect MCP tools:

  • Docker MCP (recommended) — Run MCP servers in Docker containers via the MCP Gateway. Browse the Docker MCP Catalog.
  • Local MCP (stdio) — Run MCP servers as local processes communicating over stdin/stdout.
  • Remote MCP (Streamable HTTP / SSE) — Connect to MCP servers running on a network. See Remote MCP Servers.
toolsets:
  - type: mcp
    ref: docker:duckduckgo

See Tool Config for full MCP configuration reference.

Tip

See also

For full configuration reference, see Tool Config.