Tool Execution
Tool Execution
Complete guide to tool execution via Cline integration.
Overview
Agents can execute tools in a sandboxed environment through Cline integration.
Enabling Tools
Tools are enabled by default. To disable:
USE_CLINE=falseAgent Permissions
Agents need appropriate permissions to use tools:
{ "name": "Red Team Alpha", "permissions": [ "prompt_manipulation", "sql_injection_testing", "http_request" ]}Available Tools
Red Agent Tools
http_request- Make HTTP requestssql_injection- SQL injection testingprompt_injection- Prompt injection craftingcode_execution- Execute code in sandbox
Blue Agent Tools
input_sanitization- Sanitize inputscontext_monitoring- Monitor contextquery_parameterization- Parameterize queriesinstruction_enforcement- Enforce instructions
Tool Execution Flow
- Agent generates response with tool calls
- Cline checks permissions
- Tools executed in sandbox
- Results returned to agent
- Agent response enhanced with tool results
Example
// Agent response{ text: "Attempting SQL injection", toolCalls: [ { tool: "sql_injection", params: JSON.stringify({ vector: "union_based", payload: "'; DROP TABLE users; --" }) } ]}
// Tool execution result{ success: true, output: JSON.stringify({ vector: "union_based", status: "simulated", sandboxed: true }), executionTime: 100}Best Practices
- Grant minimal permissions - Only what’s needed
- Monitor tool usage - Check execution logs
- Test tools - Verify tools work as expected
- Review results - Analyze tool execution outcomes
Next Steps
- Cline Integration - Complete Cline guide
- Creating Agents - Agent configuration