II.
HookSurface JSON
Structured · livehook-surface:pre-tool-use
PreToolUse (canonical) json
Inspect the normalized record payload exactly as the atlas UI reads it.
{
"id": "hook-surface:pre-tool-use",
"_kind": "HookSurface",
"_file": "channels-hooks/hook-surfaces/canonical/pre-tool-use.yaml",
"_cluster": "channels-hooks",
"attributes": {
"eventName": "PreToolUse (canonical)",
"displayName": "PreToolUse (canonical)",
"kind": "canonical",
"direction": "pre",
"blocking": true,
"family": "shell-hook",
"payloadSchema": {
"type": "object",
"required": [
"tool_name",
"tool_input",
"session_id",
"transcript_path"
],
"properties": {
"tool_name": {
"type": "string",
"description": "Name of the tool about to be invoked."
},
"tool_input": {
"type": "object",
"description": "Tool-specific input arguments."
},
"session_id": {
"type": "string"
},
"transcript_path": {
"type": "string"
},
"cwd": {
"type": "string"
}
}
},
"description": "The v6 canonical pre-tool-use hook. Native vendor surfaces\ncanonicalize to this surface so cross-product policies and\nplugins can target a single name.\n"
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "agent-core-impl:a5c.core@current",
"to": "hook-surface:pre-tool-use",
"kind": "fires_hook",
"attributes": {}
},
{
"from": "agent-core-impl:claude-agent-sdk.core@current",
"to": "hook-surface:pre-tool-use",
"kind": "fires_hook",
"attributes": {}
},
{
"from": "agent-core-impl:claude-code.core@1.x",
"to": "hook-surface:pre-tool-use",
"kind": "fires_hook",
"attributes": {}
},
{
"from": "agent-runtime-impl:claude-code.runtime@1.x",
"to": "hook-surface:pre-tool-use",
"kind": "exposes",
"attributes": {}
},
{
"from": "hook-mapping:pre-tool-use-opencode",
"to": "hook-surface:pre-tool-use",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:pre-tool-use-pi",
"to": "hook-surface:pre-tool-use",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:pre-tool-use-oh-my-pi",
"to": "hook-surface:pre-tool-use",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:pre-tool-use-claude-code",
"to": "hook-surface:pre-tool-use",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:pre-tool-use-codex",
"to": "hook-surface:pre-tool-use",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:pre-tool-use-gemini",
"to": "hook-surface:pre-tool-use",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:pre-tool-use-cursor",
"to": "hook-surface:pre-tool-use",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:tool-before-gemini",
"to": "hook-surface:pre-tool-use",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:tool-before-copilot",
"to": "hook-surface:pre-tool-use",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:pre-tool-use-codex-stdin",
"to": "hook-surface:pre-tool-use",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-mapping:plugin-tool-before-openclaw",
"to": "hook-surface:pre-tool-use",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-surface:claude.pre-tool-use",
"to": "hook-surface:pre-tool-use",
"kind": "canonicalized_to",
"attributes": {}
},
{
"from": "hook-surface:codex.on-tool-call",
"to": "hook-surface:pre-tool-use",
"kind": "canonicalized_to",
"attributes": {}
},
{
"from": "hook-surface:cursor.pre-tool",
"to": "hook-surface:pre-tool-use",
"kind": "canonicalized_to",
"attributes": {}
},
{
"from": "hook-surface:gemini.pre-prompt",
"to": "hook-surface:pre-tool-use",
"kind": "canonicalized_to",
"attributes": {}
},
{
"from": "hook-surface:gemini.tool-call-pre",
"to": "hook-surface:pre-tool-use",
"kind": "canonicalized_to",
"attributes": {}
}
]
}