II.
HookSurface overview
Reference · livehook-surface:before-tool-selection
Before Tool Selection overview
Fires before the model selects which tool to invoke. Allows agents to inject tool-selection guidance or restrict available tools.
Attributes
displayName
Before Tool Selection
hookPhase
pre
description
Fires before the model selects which tool to invoke. Allows agents
to inject tool-selection guidance or restrict available tools.
isNative
true
availableInProducts
Outgoing edges
None.
Incoming edges
exposes1
- agent-runtime-impl:gemini-cli.runtime@current·AgentRuntimeImplGemini CLI Runtime (current)
maps_hook1
- hook-mapping:before-tool-selection-gemini·HookMapping