Skip to content

Agent Tools Reference

Reference for all tools available to Tsumugi.

bash

Execute shell commands.

ParameterTypeRequiredDefaultDescription
commandstringYesShell command to execute
timeoutintegerNo120Timeout in seconds (max: 600)

Output: Combined stdout/stderr, truncated at 100,000 characters.

Requires Approval: Commands containing rm , chmod , or boltbase start.


read

Read file contents with line numbers.

ParameterTypeRequiredDefaultDescription
pathstringYesFile path (absolute or relative to working directory)
offsetintegerNo1Starting line number (1-based)
limitintegerNo2000Maximum lines to read

Limits:

  • Maximum file size: 1MB
  • Directories cannot be read (use bash with ls)

Output Format:

     1	first line
     2	second line
...
[Showing lines 1-2000 of 5000. Use offset=2001 to continue.]

patch

Create, edit, or delete files.

ParameterTypeRequiredDescription
pathstringYesFile path
operationstringYesOne of: create, replace, delete
contentstringFor createFull file content
old_stringstringFor replaceExact text to find (must be unique in file)
new_stringstringFor replaceReplacement text

Create Operation:

  • Creates parent directories automatically
  • Directory permissions: 0750
  • File permissions: 0600

Replace Operation:

  • old_string must appear exactly once in the file
  • Whitespace and indentation must match exactly

DAG Validation: Files ending in .yaml within the DAGs directory are validated automatically after modification using spec.LoadYAML.


think

Record reasoning without executing actions.

ParameterTypeRequiredDescription
thoughtstringYesReasoning or planning text

Output: "Thought recorded. Continue with your plan."


Navigate the user to a UI page.

ParameterTypeRequiredDescription
pathstringYesTarget path

DAG Pages:

  • /dags - DAG list
  • /dags/<name> - DAG details
  • /dags/<name>/spec - DAG specification tab
  • /dags/<name>/history - History tab
  • /dag-runs - All DAG runs
  • /dag-runs/<name>/<run-id> - Specific run details
  • /queues - Queue management

Settings Pages:

  • /system-status
  • /users
  • /api-keys
  • /webhooks
  • /terminal
  • /audit-logs
  • /git-sync
  • /agent-settings

ask_user

Prompt the user with a question.

ParameterTypeRequiredDefaultDescription
questionstringYesQuestion text
optionsstring[]NoPredefined choices (2-4 items)
allow_free_textbooleanNofalseEnable text input field
free_text_placeholderstringNoPlaceholder for text input
multi_selectbooleanNofalseAllow selecting multiple options

Constraints:

  • If options provided, must have 2-4 items

read_schema

Look up DAG YAML schema documentation.

ParameterTypeRequiredDescription
schemastringYesSchema name from available schemas
pathstringNoDot-separated path to navigate (e.g., steps.container)

Common Paths:

  • "" (empty string) - Root-level DAG fields
  • steps - Step configuration
  • steps.type - Executor/step types
  • steps.container - Container configuration
  • handler_on - Lifecycle handlers
  • handler_on.success - Success handler

Search the internet using DuckDuckGo.

ParameterTypeRequiredDefaultDescription
querystringYesSearch query
max_resultsintegerNo5Maximum results to return (max: 10)

Output Format:

Search results for "query":

1. Title
   URL: https://example.com
   Description text here

2. Another Title
   URL: https://example.org
   More description

[Found 5 results]

Timeouts: 30 seconds per request, up to 3 retries.

Released under the MIT License.