Filters the maximum serialized size for one tool result sent to an LLM provider or saved in conversation history.
Oversized tool results are deterministically compacted and may be reopened from the active session cache with inspect_tool_result.
add_filter( 'ai_assistant_tool_result_max_chars', function( int $chars ) { // Your code here. return $chars; } );
int
$chars
apply_filters('ai_assistant_tool_result_max_chars', 32 * 1024)
← All Hooks
There was an error while loading. Please reload this page.