Fields
| Field | Requirement |
|---|---|
content | Required array of text items for extension tool execution |
details | Optional JSON-safe metadata used by diagnostics or later hooks |
content concise because it enters the model conversation. Keep details bounded and free of secrets.
Tool-result hook patches
Atool_result lifecycle handler can return any of:
terminate: true asks the harness to end the current agent loop after the tool result.
Errors
Throw anError when the tool cannot produce a valid result. Use a safe message suitable for sanitized runtime diagnostics. Never include tokens, provider payloads, or credentials in the message.