04 Built-in Tools#

Script: example/04_tools_builtin.py.

OpenRath merges built-in filesystem and shell tools into every session loop. This example asks an agent to write a file, read it back, and run a shell command in the sandbox.

python example/04_tools_builtin.py

Tool

Purpose

run_shell_command

Executes a shell command through the active backend.

write_workspace_file

Writes text into the sandbox workspace.

global_system_tools()

Lists the built-in tool table.

Run it with a local sandbox bound to spec="." if you want to inspect the created file.

← Runnable Examples