The Sandbox Model
Tool runs execute as one-shot sandbox jobs on your staging cluster, isolated from the rest of the platform:- Runs use a signed runner image with no Kubernetes API access.
- Network egress is limited to DNS and HTTPS.
- CPU, memory, and execution time are capped.
- The AI’s arguments arrive as JSON in the
TOOL_INPUTenvironment variable, validated against your input schema first.
Creating a Tool
1
Define the interface
Name the tool (lowercase, digits, underscores), describe what it does and when the AI should use it, and provide a JSON Schema for its input. The description is what the AI reads when deciding to call it - make it concrete.
2
Write the script
Pick a runner and write the script. Read
TOOL_INPUT for arguments; whatever the script prints is returned to the AI.3
Set the guardrails
Choose a risk level (low, medium, high), optionally mark the tool trusted, and scope it to all clusters or named clusters only. Secret values come from AI chat secret slots mounted as files - never hardcode credentials in the script.