bashkit-scripted-tool
ScriptedTool for bashkit: register
ToolDef + callback pairs and expose them to an LLM as one tool that accepts a
bash script. Each registered tool becomes a command in a logic-only shell (no
filesystem, no script execution), so a model can chain many calls in one turn
with pipes, variables, loops and jq.
[]
= "0.19"
= { = "0.19", = ["jq"] }
use Tool;
use ;
let tool = builder
.tool_fn
.build;
Features:
jq: admit thejqbuiltin in the logic-only shell.python,typescript: expose aToolRegistryto embedded Python and TypeScript as host functions (ToolRegistry::install).tracing: debug logs for sanitized callback errors.
This crate used to be the scripted_tool feature of bashkit. See the
migration guide.