II.
HookSurface overview
Reference · livehook-surface:codex.on-tool-call
OnToolCall (Codex) overview
Codex's pre-tool-call hook. Canonicalizes to pre-tool-use.
Attributes
eventName
OnToolCall (Codex)
displayName
OnToolCall (Codex)
kind
native
originVendor
OpenAI
direction
pre
blocking
true
family
shell-hook
payloadSchema
type
object
required
- toolName
- args
properties
toolName
type
string
args
type
object
description
Codex's pre-tool-call hook. Canonicalizes to pre-tool-use.
Outgoing edges
canonicalized_to1
- hook-surface:pre-tool-use·HookSurfacePreToolUse (canonical)
emits_hook1
- agentVersion:codex:ge-0-119-0·AgentVersionCodex CLI
Incoming edges
exposes2
- agent-runtime-impl:codex-app-server.runtime@current·AgentRuntimeImplCodex App-Server Runtime (current)
- agent-runtime-impl:codex.runtime@1.x·AgentRuntimeImplCodex CLI Runtime (1.x)
fires_hook1
- agent-core-impl:codex.core@1.x·AgentCoreImplCodex CLI Core (1.x)
maps_hook1
- hook-mapping:codex-on-tool-call-native·HookMapping