Skip to content

Add markdown output support - #64

Merged
adarshdigievo merged 3 commits into
mainfrom
feat/add-markdown-output-support
Aug 15, 2026
Merged

Add markdown output support#64
adarshdigievo merged 3 commits into
mainfrom
feat/add-markdown-output-support

Conversation

@adarshdigievo

@adarshdigievo adarshdigievo commented Aug 15, 2026

Copy link
Copy Markdown
Member

Summary

Search results can now be returned as Markdown by setting params.output to "md". JSON remains the default for this release, so existing clients keep the same behavior.

Changes

  • Added optional Markdown responses through params.output="md".
  • Kept omitted and explicit output="json" requests as JSON.
  • Kept MCP Apps on JSON by overriding their internal requests with output="json".
  • Documented Markdown output and added examples for Amazon, Google Scholar, YouTube, Apple App Store, and eBay.
  • Bumped the feature version from 0.5.0 to 0.6.0.
  • Currently, mode=compact keeps markdown unaltered.

Fixes

Previously, passing an output=html param to tool requests caused an .as_dict() conversion error because the SDK returned raw HTML as a string. This is now clearly shown as a format error:

The search tool now accepts only "json" and "md". Other values are rejected before the request with:

Error: Invalid output. Use either 'md' or 'json' for the output parameter.

Testing

  • Verified MCP Apps, search tool, and resource docs via MCP Inspector. Default requests use JSON and work.
  • "output": "md" result:

Request:
image

Response:
image

Response from Amazon engine:
image

@adarshdigievo
adarshdigievo merged commit ccabebd into main Aug 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant