II.
HookSurface overview
Reference · livehook-surface:before-provider-request
BeforeProviderRequest (canonical) overview
Fires immediately before Transport-Client serializes and sends the request to the provider. The last point at which a subscriber can inspect, redact, or rewrite the actual request bytes. Distinct from BeforePromptBuild (which sits before assembly). Subscribers used for audit redaction, transport-proxy injection, and request-shape instrumentation.
Attributes
eventName
BeforeProviderRequest (canonical)
displayName
BeforeProviderRequest (canonical)
kind
canonical
direction
pre
blocking
true
family
in-process
payloadSchema
type
object
required
- session_id
- model_id
- request_body
properties
session_id
type
string
model_id
type
string
provider_id
type
string
request_body
type
object
description
Full provider request envelope as it would be sent on the wire.
description
Fires immediately before Transport-Client serializes and sends the
request to the provider. The last point at which a subscriber can
inspect, redact, or rewrite the actual request bytes. Distinct from
BeforePromptBuild (which sits before assembly). Subscribers used for
audit redaction, transport-proxy injection, and request-shape
instrumentation.
Outgoing edges
None.
Incoming edges
exposes1
- agent-runtime-impl:claude-code.runtime@1.x·AgentRuntimeImplClaude Code Runtime (1.x)
maps_hook2
- hook-mapping:before-provider-request-pi·HookMapping
- hook-mapping:before-provider-request-oh-my-pi·HookMapping