test

abstract fun test(tool: BaseTool, readonlyContext: ReadonlyContext?): Boolean

Returns true if tool should be selected.

Parameters

tool

the tool to check.

readonlyContext

the current invocation context, or null when none is available (for example when a toolset lists its tools outside of an invocation).