Return shape for onToolResult. Supply content to replace what the model is shown; return nothing (or an empty object) to leave the tool's output as it is.
The text the model is shown for this tool result, in place of what the tool returned. The usual clip still applies to it. Whether the result counts as an error is unchanged.
Return shape for
onToolResult. Supplycontentto replace what the model is shown; return nothing (or an empty object) to leave the tool's output as it is.Example: ```javascript onToolResult: (call, result) => result.content.length > 4000 ? { content: result.content.substring(0, 4000) + "\n… truncated" } : null, // returning nothing leaves the tool output alone ```