latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

tool management

Update Tool Policy

Set the input_policy and/or output_policy for a tool (global), or block for a specific team/key (override).

Parameters:

  • tool_name: str - The tool to update
  • input_policy: optional - "trusted" | "untrusted" | "blocked"
  • output_policy: optional - "trusted" | "untrusted"
  • team_id: optional - if set, create/update override for this team only
  • key_hash: optional - if set, create/update override for this key only
post/v1/tool/policy

Request body

tool_namestring required
input_policy'trusted' | 'untrusted' | 'blocked' nullable
output_policy'trusted' | 'untrusted' nullable
team_idstring nullable
key_hashstring nullable
key_aliasstring nullable

Response

Successful Response

tool_namestring required
input_policy'trusted' | 'untrusted' | 'blocked' nullable
output_policy'trusted' | 'untrusted' nullable
updatedboolean required
team_idstring nullable
key_hashstring nullable