Public payload passed to PreToolUse hooks.
The shell runner encodes this payload as JSON and writes it to the hook command's standard input. Keep field names stable because user scripts may depend on them.
Summary
Functions
Builds a payload from a native provider or runtime tool call map.
Builds a payload from explicit tool call fields.
Converts the payload to the JSON object shape used on stdin.
Types
Functions
Builds a payload from a native provider or runtime tool call map.
Builds a payload from explicit tool call fields.
Converts the payload to the JSON object shape used on stdin.