Expand description
Agent tool system for RustyClaw.
Provides a registry of tools that the language model can invoke, and formatters that serialise the tool definitions into each provider’s native schema (OpenAI function-calling, Anthropic tool-use, Google function declarations).
Structs§
- Tool
Call - A tool call requested by the model (sent gateway → client for display).
- ToolDef
- A tool that the agent can invoke.
- Tool
Param - JSON-Schema-like parameter definition.
- Tool
Result - The result of executing a tool (sent gateway → client for display, and also injected back into the conversation for the model).
Constants§
- VAULT_
ACCESS_ DENIED - Standard denial message when a tool tries to touch the vault.
Statics§
- AGENTS_
LIST - APPLY_
PATCH - BROWSER
- CANVAS
- CRON
- EDIT_
FILE - EXECUTE_
COMMAND - FIND_
FILES - GATEWAY
- IMAGE
- LIST_
DIRECTORY - MEMORY_
GET - MEMORY_
SEARCH - MESSAGE
- NODES
- PROCESS
- READ_
FILE read_file— read the contents of a file on disk.- SEARCH_
FILES - SECRETS_
GET - SECRETS_
LIST - SECRETS_
STORE - SESSIONS_
HISTORY - SESSIONS_
LIST - SESSIONS_
SEND - SESSIONS_
SPAWN - SESSION_
STATUS - SKILL_
ENABLE - SKILL_
INFO - SKILL_
INSTALL - SKILL_
LINK_ SECRET - SKILL_
LIST - SKILL_
SEARCH - TTS
- WEB_
FETCH - WEB_
SEARCH - WRITE_
FILE
Functions§
- agents_
list_ params - all_
tools - Return all available tools.
- apply_
patch_ params - browser_
params - canvas_
params - command_
references_ credentials - Returns
truewhen a command string references the credentials directory. - cron_
params - edit_
file_ params - execute_
command_ params - execute_
tool - Find a tool by name and execute it with the given arguments.
- expand_
tilde - Expand a leading
~to the user’s home directory. - find_
files_ params - gateway_
params - image_
params - init_
sandbox - Called once from the gateway to initialize the sandbox.
- is_
protected_ path - Returns
truewhenpathfalls inside the credentials directory. - is_
secrets_ tool - Returns
truefor tools that must be routed through the gateway (i.e. handled byexecute_secrets_tool) rather thanexecute_tool. - is_
skill_ tool - Returns
truefor skill-management tools that are routed through the gateway (i.e. handled byexecute_skill_tool) because they need access to the process-globalSkillManager. - list_
directory_ params - memory_
get_ params - memory_
search_ params - message_
params - nodes_
params - process_
manager - Get the global process manager instance.
- process_
params - read_
file_ params - run_
sandboxed_ command - Run a command through the sandbox (or unsandboxed if not initialized).
- sandbox
- Get the global sandbox instance, if initialized.
- sanitize_
tool_ output - Sanitize tool output: truncate if too large, warn if garbage detected.
- search_
files_ params - secrets_
get_ params - secrets_
list_ params - secrets_
store_ params - session_
status_ params - sessions_
history_ params - sessions_
list_ params - sessions_
send_ params - sessions_
spawn_ params - set_
credentials_ dir - Called once from the gateway to register the credentials path.
- set_
vault - Called once from the gateway to register the vault for tool access.
- skill_
enable_ params - skill_
info_ params - skill_
install_ params - skill_
link_ secret_ params - skill_
list_ params - skill_
search_ params - tools_
anthropic - Anthropic tool-use format.
- tools_
google - Google Gemini function-declaration format.
- tools_
openai - OpenAI / OpenAI-compatible function-calling format.
- tts_
params - vault
- Get the global vault instance, if initialized.
- web_
fetch_ params - web_
search_ params - write_
file_ params
Type Aliases§
- Shared
Vault - Shared vault type for thread-safe access (uses tokio::sync::Mutex for async).