HarnessToolEvent
Parameters and properties
Section titled “Parameters and properties”The fields below cover all variants; the signature specifies their allowed combinations.
kindRequired"warning" | "text" | "raw"Tool-authored event category: text, warning or raw. Tools cannot emit execution or watchdog events.messageVariant-dependentstringMessage of a warning, failure, quota, fallback, model-retry or model-error event, or the message a stop hook sent back to the model on stop-prevented.subagentIdOptionalstring | undefinedIdentifier of the built-in child that emitted the event; absent for the root harness. Lifecycle events link that identifier to the delegating tool call.textVariant-dependentstringText of the event according to kind: agent text, streamed fragment, final answer, rendered prompt, steering instruction, reasoning, stderr line or tool output chunk.valueVariant-dependentunknownRaw protocol line as the agent printed it; for an oversized line, only its first 2000 characters.bytesVariant-dependentnumber | undefinedObserved UTF-8 byte size of an oversized protocol line or buffered prefix before termination.truncatedVariant-dependentboolean | undefinedWhether the stderr fragment or oversized raw preview was bounded before delivery.

