Skip to content

MdStr marks a tool result as markdown - #51

Merged
jph00 merged 1 commit into
mainfrom
pr/mdstr-marks-a-tool-result-as-markdown
Sep 4, 2026
Merged

MdStr marks a tool result as markdown#51
jph00 merged 1 commit into
mainfrom
pr/mdstr-marks-a-tool-result-as-markdown

Conversation

@jph00

@jph00 jph00 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

A tool result that is markdown by construction, such as a fetched page or a search's sources, travels as an MdStr, a str subclass beside StopResponse and FullResponse. The {.tool} wire block carries it as "md": true, re-parsing restores the type, and tool_md renders such a result unfenced. Every other result stays fenced, so nothing changes for a tool that returns plain text. Non-code tools now show their args as a JSON block and their result under Output:, the same shape code tools already had. See "Wire blocks" in the msg_parts notebook and fmt_tools in the dialog notebook.

@jph00 jph00 added the enhancement New feature or request label Sep 4, 2026
@jph00
jph00 merged commit bb8a30a into main Sep 4, 2026
1 check passed
@jph00
jph00 deleted the pr/mdstr-marks-a-tool-result-as-markdown branch September 4, 2026 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant