Expand description
Native built-in tools for Leviath agents.
Provides file system and shell tools sandboxed to a working directory.
Re-exports§
pub use validate::*;
Modules§
- validate
- Structural validation of tool-call arguments against declared schemas.
Structs§
- Builtin
Tools - Built-in tools: read_file, write_file, edit_file, list_dir, shell.
- Platform
Capabilities - The set of
ToolCapabilitys the current platform provides. - Process
Group Reaper - SIGKILLs a shell’s whole process group when dropped.
- Shell
EnvPolicy - The resolved
[security] shell_envdecision for one run. - Tool
Context - Context for tool execution - defines the sandbox root.
Enums§
- Tool
Capability - A platform feature a built-in tool depends on.
Constants§
- SUBAGENT_
TOOLS - The tool names routed to the sub-agent handler (they run against the daemon’s agent engine, not the builtin/MCP executors). One list, shared by the CLI’s dispatch routing and the runtime’s crash-replay synthesis, so the two can’t drift.
- SUBMIT_
OUTPUT_ TOOL - The tool an agent calls to hand back the run’s final output.
- TOOL_
ALIASES - Alias → canonical built-in tool name.
Traits§
- Shell
Executor - Redirects shell command execution off the host into a sandbox.
Functions§
- canonical_
tool_ name - Resolve
namethroughTOOL_ALIASESto its canonical built-in name. - child_
command - Build a child-process command with no console window.
- is_
null_ device - Is
paththe platform’s discard device? - is_
subagent_ tool - Whether
nameis a sub-agent tool. - own_
process_ group - Put
cmdin its own process group, so the whole command tree can be signalled as one.leviath_sys::configure_detacheddoes this for astd::process::Command; the tool lane uses tokio’s, which has its own (Unix-only) setter. A no-op where the platform has no process groups - there, killing the direct child is all that exists. - submit_
output_ description - The
submit_outputtool’s description, built from the output shape resolved for the stage rather than fixed at compile time. - tool_
name_ spellings - Every name that refers to the same tool as
name: the name itself, its canonical form, and every alias of that canonical form. - tool_
required_ capabilities - The capabilities a built-in tool requires to function.