The context type passed to the handler. Defaults to ToolInvocationContext.
OptionalconfirmIf set, this tool requires extra confirmation before auto-approval can be enabled.
When a tool has this flag:
If a string is provided, it will be displayed as the custom warning message. If true, a generic warning message will be shown.
Use for tools with broad system access (shell execution, file deletion, etc.)
OptionaldescriptionOptionalprovider
Defines a tool that can be invoked by language models.