iiRecord
Agentic AI Atlas · tool_call_pre (Gemini)
hook-surface:gemini.tool-call-prea5c.ai
II.
HookSurface JSON

hook-surface:gemini.tool-call-pre

Structured · live

tool_call_pre (Gemini) json

Inspect the normalized record payload exactly as the atlas UI reads it.

File · channels-hooks/hook-surfaces/native/gemini-tool-call-hooks.yamlCluster · channels-hooks
Record JSON
{
  "id": "hook-surface:gemini.tool-call-pre",
  "_kind": "HookSurface",
  "_file": "channels-hooks/hook-surfaces/native/gemini-tool-call-hooks.yaml",
  "_cluster": "channels-hooks",
  "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;\nsubscribers can deny, mutate args, or inject context. Canonicalizes\nto PreToolUse via hooks-adapter mapping.\n"
  },
  "outgoingEdges": [
    {
      "from": "hook-surface:gemini.tool-call-pre",
      "to": "hook-surface:pre-tool-use",
      "kind": "canonicalized_to",
      "attributes": {}
    }
  ],
  "incomingEdges": [
    {
      "from": "agent-core-impl:gemini-cli.core@current",
      "to": "hook-surface:gemini.tool-call-pre",
      "kind": "fires_hook",
      "attributes": {}
    },
    {
      "from": "agent-runtime-impl:gemini-cli.runtime@current",
      "to": "hook-surface:gemini.tool-call-pre",
      "kind": "exposes",
      "attributes": {}
    },
    {
      "from": "hook-mapping:gemini-tool-call-pre-native",
      "to": "hook-surface:gemini.tool-call-pre",
      "kind": "maps_hook",
      "attributes": {}
    }
  ]
}