Skip to main content

add_tool

Method
This is a method of the PermissionAllowlist class in the approval module.
Add a tool to the allowlist.

Signature

def add_tool(tool_name: str, paths: Optional[List[str]], session_only: bool) -> None

Parameters

tool_name
str
required
Name of the tool to allow
paths
Optional
Optional list of allowed paths (empty = all paths)
session_only
bool
default:"False"
If True, permission expires with session