Skip to content

ai_assistant_tool_result_cache_limit

github-actions[bot] edited this page Nov 14, 2026 · 7 revisions

Filters how many raw tool results are kept in the active browser session for inspect_tool_result.

Cached raw results are not persisted into conversation storage; they let the assistant inspect narrow slices of compacted large results without sending the full payload to the provider.

Auto-generated Example

add_filter(
   'ai_assistant_tool_result_cache_limit',
    function( int $limit ) {
        // Your code here.
        return $limit;
    }
);

Parameters

  • int $limit Maximum cached tool results. Default 20.

Files

apply_filters('ai_assistant_tool_result_cache_limit', 20)

← All Hooks

Clone this wiki locally