Skip to content
ochat
Search documentation

Use quotes for an exact phrase.

Search by topic, command, or code identifier.

    GitHub ↗

    Give your agent tools

    Choose built-in tools, specialist agents, or maintained MCP integrations.

    View Markdown source ↗

    Tools let an agent act on the world outside the conversation: read a file, propose an edit, search documentation, ask a specialist, or use an external service. Declare the tools in the agent’s ChatMD file so its capabilities are visible alongside its instructions.

    Start with the smallest useful set. A repository explainer may only need file reads; a coding agent may also need patching and carefully configured commands.

    KindUseful forReference
    Built-in toolsFiles, patches, web ingestion, search, and other packaged capabilitiesAvailable built-ins
    Agent toolsDelegate a focused task to another ChatMD promptTool declarations and agent composition
    Shell toolsRun configured commands or interactive processesShell access
    MCP toolsConnect to tool catalogs served by external MCP serversMCP selection, authentication, and discovery

    MCP tool integration is maintained. It is distinct from Ochat’s deprecated MCP prompt-serving host, and from the new Ochat agent-server protocol.

    Add these declarations to a ChatMD prompt with your own instructions:

    <tool name="read_dir"/>
    <tool name="read_file">
    <read id="project" path="${workspace}" description="Project files"/>
    </tool>

    The second declaration configures the file reader’s root explicitly. Do not assume that this root also confines other tools: each tool has its own behavior. The catalog also distinguishes declaration names from model-visible names—for example, read_dir exposes read_directory.

    Before adding a writing or command tool, read its access and execution semantics. Tool availability, filesystem authority, and approval policy are different questions. A confirmation dialog does not itself create a sandbox, and a configured workspace does not automatically restrict every tool to that folder.