class

Autobot::Tools::BashTool

Inherits Autobot::Tools::Tool < Reference < Object

A tool that wraps a bash script found in a skills directory.

Bash tools are auto-discovered from skills/ directories. Each executable .sh or .bash file becomes a tool the agent can invoke. The script receives arguments as positional parameters and environment variables: the parameters its SKILL.md declares, in order, or the split args string.

Constants

Log = ::Log.for(self)
SCRIPT_EXTENSIONS = {".sh", ".bash"}
SCRIPT_TIMEOUT = 30

Constructors

new(executor : SandboxExecutor, script_path : String, tool_name : String | Nil = nil, tool_description : String | Nil = nil, params : Array(Autobot::Agent::SkillParam) = [] of Agent::SkillParam)
Source

Class methods

script_name(filename : String) : String | Nil
Source

Instance methods

description
Source
execute(params : Hash(String, JSON::Any)) : ToolResult
Source
name
Source
parameters
Source
params
Source
script_path
Source