The script tool lets you define custom shell scripts as named tools. Unlike the generic shell tool where the agent writes the command at runtime, script tools execute predefined commands with descriptive names and typed parameters — ideal for exposing safe, well-scoped operations to the agent.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/docker/docker-agent/llms.txt
Use this file to discover all available pages before exploring further.
Configuration
Simple scripts
Define scripts with a name, command, and description:Scripts with parameters
Use${param} interpolation and JSON Schema to define typed arguments:
Script properties
Shell command to execute. Use
${arg_name} to interpolate parameter values.Human-readable description shown to the model. A clear description helps the agent choose the right tool.
Parameter definitions as JSON Schema properties. Each key is a parameter name.
List of required parameter names. Parameters not in this list are optional.
Environment variables specific to this script. Values can reference
${env.VAR} for host environment variables.Working directory for this script. Defaults to the agent’s working directory.
Example agent
script_shell.yaml
Security considerations
Related
Shell
Run arbitrary commands at runtime.
API
Define HTTP API calls as named tools.
Permissions
Control which tools require confirmation.
Configuration
Full toolset configuration reference.