II.
HookSurface overview
Reference · livehook-surface:gemini.tool-call-pre
tool_call_pre (Gemini) overview
Gemini CLI's pre-tool hook. Fired before each tool invocation; subscribers can deny, mutate args, or inject context. Canonicalizes to PreToolUse via hooks-adapter mapping.
Attributes
eventName
tool_call_pre (Gemini)
displayName
tool_call_pre (Gemini)
kind
native
originVendor
Google
direction
pre
blocking
true
family
shell-hook
payloadSchema
type
object
required
- tool_name
- tool_input
properties
tool_name
type
string
tool_input
type
object
session_id
type
string
description
Gemini CLI's pre-tool hook. Fired before each tool invocation;
subscribers can deny, mutate args, or inject context. Canonicalizes
to PreToolUse via hooks-adapter mapping.
Outgoing edges
canonicalized_to1
- hook-surface:pre-tool-use·HookSurfacePreToolUse (canonical)
Incoming edges
exposes1
- agent-runtime-impl:gemini-cli.runtime@current·AgentRuntimeImplGemini CLI Runtime (current)
fires_hook1
- agent-core-impl:gemini-cli.core@current·AgentCoreImplGemini CLI Core (current)
maps_hook1
- hook-mapping:gemini-tool-call-pre-native·HookMapping