Skip to content

ai_assistant_tool_definitions

github-actions[bot] edited this page Sep 8, 2026 · 2 revisions

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.

Auto-generated Example

add_filter(
   'ai_assistant_tool_definitions',
    function(
        array<int,array<string,mixed>> $tools,
        Tools $this
    ) {
        // Your code here.
        return $tools;
    },
    10,
    2
);

Parameters

  • array<int,array<string,mixed>> $tools Tool definitions.
  • Tools $this Tool registry instance.

Files

apply_filters('ai_assistant_tool_definitions', $tools, $this)

← All Hooks

Clone this wiki locally