II.
HookSurface overview
Reference · livehook-surface:gemini.pre-prompt
pre_prompt (Gemini) overview
Gemini's pre-prompt hook. Fired before the prompt is sent to the model. Canonicalizes to before-prompt-build (or pre-tool-use for cross-product policies).
Attributes
eventName
pre_prompt (Gemini)
displayName
pre_prompt (Gemini)
kind
native
originVendor
Google
direction
pre
blocking
true
family
shell-hook
payloadSchema
type
object
required
- prompt
properties
prompt
type
string
description
Gemini's pre-prompt hook. Fired before the prompt is sent to the
model. Canonicalizes to before-prompt-build (or pre-tool-use for
cross-product policies).
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-pre-prompt-native·HookMapping