Skip to content

ai_assistant_read_only_tool_definitions

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

Filters read-only tool definitions.

Auto-generated Example

add_filter(
   'ai_assistant_read_only_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 Read-only tool definitions.
  • Tools $this Tool registry instance.

Files

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

← All Hooks

Clone this wiki locally