Skip to main content

Module tool_policy

Module tool_policy 

Source
Expand description

Tool policy management system

This module manages user preferences for tool usage, storing choices in ~/.vtcode/tool-policy.json to minimize repeated prompts while maintaining user control overwhich tools the agent can use.

Structs§

AlternativeArgsPolicy
Arguments policy in alternative format
AlternativeDefaultPolicy
Default policy in alternative format
AlternativeToolPolicy
Tool policy in alternative format
AlternativeToolPolicyConfig
Alternative tool policy configuration format (user’s format)
ApprovalCacheConfig
Persisted approval cache stored alongside tool policies
McpPolicyStore
Stored MCP policy state, persisted alongside standard tool policies
McpProviderPolicy
MCP provider policy entry containing per-tool permissions
ToolConstraints
Scoped, optional constraints for a tool to align with safe defaults
ToolPolicyConfig
Tool policy configuration stored in ~/.vtcode/tool-policy.json
ToolPolicyManager
Tool policy manager

Enums§

ToolExecutionDecision
Decision result for tool execution
ToolPolicy
Tool execution policy

Traits§

PermissionPromptHandler
Handler for tool permission prompts