Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dari.dev/llms.txt

Use this file to discover all available pages before exploring further.

Dari-executed tools are custom tools that run inside Dari’s session sandbox. They include executable handler code in your agent bundle, so the model can call them without waiting for your application to run anything externally. Use a Dari-executed tool when the work should happen in the session workspace, such as reading generated files, transforming repository content, or wrapping a repeatable command behind a typed schema.
# dari.yml
custom_tools:
  - name: repo_search
    path: tools/repo_search
    kind: main
    runtime: typescript
    handler: handler.ts:main
    retries: 3
    timeout_seconds: 20
# tools/repo_search/tool.yml
name: repo_search
description: Search the checked-out repository for matching content.
input_schema: input.schema.json
// tools/repo_search/input.schema.json
{
  "type": "object",
  "properties": {
    "query": { "type": "string" }
  },
  "required": ["query"]
}
Supported runtimes: typescript, python.