Serializes a ToolCallResult to a string suitable for sending back to the model.
HTML app results are replaced with a compact placeholder so that large bundled HTML
(e.g. Plotly charts) does not blow the model's context window. The full HTML is still
available in the structured result for rendering in the UI (e.g. via McpAppFrame).
Serializes a ToolCallResult to a string suitable for sending back to the model.
HTML app results are replaced with a compact placeholder so that large bundled HTML (e.g. Plotly charts) does not blow the model's context window. The full HTML is still available in the structured result for rendering in the UI (e.g. via McpAppFrame).