ApiSchemas
ToolCallPendingEvent
One shape from the contract, as it appears on the wire.
Used by sessions.annotate, sessions.events, sessions.send
JSON Schema
{
"type": "object",
"properties": {
"seq": {
"$ref": "#/components/schemas/EventSeq"
},
"sessionId": {
"$ref": "#/components/schemas/SessionId"
},
"at": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"tool.call.pending"
]
},
"toolCallId": {
"$ref": "#/components/schemas/ToolCallId"
},
"name": {
"type": "string",
"minLength": 1
},
"requestedBy": {
"type": "string",
"enum": [
"hook",
"policy"
]
},
"prompt": {
"type": "string"
},
"channel": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"parentToolCallId": {
"$ref": "#/components/schemas/ToolCallId"
},
"planStepId": {
"type": "string",
"minLength": 1
},
"resumeKey": {
"type": "string",
"minLength": 1
}
},
"required": [
"seq",
"sessionId",
"at",
"type",
"toolCallId",
"name",
"requestedBy",
"expiresAt"
],
"additionalProperties": false
}