parse_js_eval_blocks(
output: str,
) -> list[JsEvalBlock] | None| Name | Type | Description |
|---|---|---|
output* | str | Raw tool output from the |
Parse js_eval output into structured display blocks.
Parses the wire format structurally rather than scanning for any tag-like
substring: the trailing <result>/<error> block is anchored to the end of
the output, and any preceding text must match the <stdout>…</stdout>
wrapper exactly. The stdout body is taken verbatim and never re-scanned, so
tag-like text printed by user code is preserved as stdout rather than
mis-parsed into fake result/error sections.