isToolSelected

fun ToolFilter?.isToolSelected(tool: BaseTool, readonlyContext: ReadonlyContext? = null): Boolean

Returns whether tool is selected by this filter under readonlyContext.

A null filter applies no filtering and selects every tool. An empty ToolFilter.AllowList selects no tools. ToolFilter.Predicate delegates to its ToolPredicate, forwarding readonlyContext unchanged.