Filters tool definitions exposed by the PHP registry.
Extension modules can add tools here while keeping their execution and client-side schemas in separate files.
add_filter( 'ai_assistant_tool_definitions', function( array<int,array<string,mixed>> $tools, Tools $this ) { // Your code here. return $tools; }, 10, 2 );
array<int,array<string,mixed>>
$tools
Tools
$this
apply_filters('ai_assistant_tool_definitions', $tools, $this)
← All Hooks
There was an error while loading. Please reload this page.