vaibot_decide
Determine if an agent action is allowed, requires approval, or is denied before executing risky tools. Returns a run ID for finalizing the decision.
Instructions
Ask VAIBot whether an agent action should be allowed, requires approval, or is denied. Call this BEFORE executing any tool that could be risky (exec, file writes, network calls). Returns a run_id to use with vaibot_finalize after execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the action | |
| tool | Yes | Name of the tool the agent wants to execute | |
| params | No | Additional tool parameters | |
| target | No | Target URL or file path (for network/file operations) | |
| command | No | The exact command or action string (e.g. "rm -rf /tmp/export") | |
| agent_id | Yes | Agent identifier (e.g. "main", "claude-code", "gpt-4o") | |
| session_id | Yes | Current agent session or conversation ID | |
| workspace_dir | No | Root workspace boundary for path classification |