Skip to content

Pick a server by job

MCP scraper output formats: text, images, links and structured data

Read the five MCP content types and structuredContent in a tool result, see what two browser servers return inline or as files, and check a scraping server's output.

By Shannon Mcbride, MCPScraper team · Published

This article was drafted with AI assistance from the sources listed below and edited and published by the MCPScraper team. Disclosure: the MCPScraper API, which this article mentions, is this site's own product.

Check a scraping MCP server's output
  • List the tools: look for an outputSchema on each tool in tools/list.
  • Call one page: fetch example.com once and note each content type in the result.
  • Find the images: see whether a screenshot arrives inline as base64 or as a file.
  • Compare the copies: check that the text block matches structuredContent.
  • Force an error: a failed fetch should come back with isError: true and a text reason.

A scraping MCP server answers every call with a tool result. That result decides what reaches the model: page text, an element tree, a screenshot, a pointer to a file, or a JSON object. Two servers that both "read a page" can put very different things into context.

This post maps the MCP content types to scraping jobs, then lists what two open-source browser servers return. All rows were checked on 2026-11-21 against the MCP specification's tools page, 2026-07-28 revision, the Playwright MCP README and the Chrome DevTools MCP tool reference. These projects ship often. Recheck before you rely on a row.

The five content types

Unstructured output goes in the result's content array. One result can hold several items of different types.

TypeFieldsScraping use
texttextPage text, an element snapshot, an error message
imagedata (base64), mimeTypeA screenshot
audiodata (base64), mimeTypeRare for page reading
resource_linkuri, name, description, mimeTypeA pointer the client can fetch or subscribe to, such as a saved file
resource (embedded)resource with uri, mimeType, textContent shipped together with the URI it came from

Notes from the same page:

  • All five types accept optional annotations for audience, priority and modification time. The spec's image example sets audience to ["user"]; its embedded resource example carries lastModified.
  • A resource link from a tool may not show up in resources/list.
  • A server that embeds resources SHOULD implement the resources capability.

For a scraper, the practical split is simple. Text lands in the model's context as words. An image lands as base64 data the client has to handle. A link lands as a URI and leaves the content itself outside the result.

structuredContent and outputSchema

Structured output is a second channel, next to content.

  • structuredContent holds one JSON value: object, array, string, number, boolean or null.
  • If the tool defines an outputSchema, servers MUST return structured results that conform to it, and clients SHOULD validate them.
  • For backwards compatibility, a tool that returns structured content SHOULD also return the serialized JSON in a text block.
  • The spec notes that structuredContent is data the server produces. It has nothing to do with schema-constrained model output.

A scraping tool that returns fields such as the final URL and a title fits this shape. A result for a hypothetical tool could look like this:

{
  "jsonrpc": "2.0",
  "id": 7,
  "result": {
    "resultType": "complete",
    "content": [
      {
        "type": "text",
        "text": "{\"url\": \"https://example.com/\", \"title\": \"Example Domain\"}"
      }
    ],
    "structuredContent": {
      "url": "https://example.com/",
      "title": "Example Domain"
    }
  }
}

The text block repeats the JSON, as the spec suggests. A client that ignores structuredContent still gets the same data.

Failures use the same result shape. The spec calls them tool execution errors and reports them with isError: true, next to a text item that says what went wrong. Protocol errors, such as an unknown tool, come back as JSON-RPC errors instead.

What two browser servers return

Both servers below drive a real browser. Each one lets the caller choose, tool by tool, between output in the result and output in a file.

OutputPlaywright MCPChrome DevTools MCP
Element snapshotbrowser_snapshot, an accessibility snapshot; filename saves it to a file insteadtake_snapshot, a text snapshot based on the a11y tree; filePath saves it instead of attaching it
Snapshot in other responsesOn by default; --snapshot-mode full (default) or noneNot checked for this table
Screenshotbrowser_take_screenshot; without filename, saved to the output directory as page-{timestamp} with the image extensiontake_screenshot, attached to the response unless filePath is set; format default png
Images to the client--image-responses allow (default), omit or onlyNot checked for this table
Network request bodiesWritten to a file when the tool is given a filenameget_network_request; bodies inline unless requestFilePath or responseFilePath is set
PDFbrowser_pdf_save, opt-in with --caps=pdfNot checked for this table

The Playwright MCP README calls the snapshot better than a screenshot. It does not say, as of the check date, whether browser_take_screenshot also returns the image inline when it writes the file.

A file path in a result only helps when the client, or the model through another tool, can open that path. On a remote server, the file sits on the server's disk.

Where a page reader fits

A browser server returns element trees and images built for the next click. A page reader returns the text of one page. MCPScraper API is this site's own page reader: its get_page_contents tool fetches one public page per call and returns its main content as Markdown, plain text or HTML. The MCP docs list its tools. For the trade-off between the two browser servers on reading jobs, see Chrome DevTools MCP vs Playwright MCP for reading pages.

Check a server's output in five calls

Before an agent depends on a scraping server, run this against example.com:

  1. Send tools/list. Note which tools define an outputSchema.
  2. Call the main read tool once on https://example.com/. Write down the type of every item in content, and whether structuredContent is present.
  3. Take one screenshot, if the server offers it. Check whether it arrives as an image item, a file path or both. On Playwright MCP, try --image-responses omit and compare.
  4. If structuredContent is present, compare it with the text block. They should carry the same data.
  5. Call the tool on a path of example.com that does not exist. A clear result has isError: true and one text item with the reason.

How large a result your client accepts is a client setting; the token budget guide on fetchmcp.net covers those caps. For hosting choices, see self-hosted or hosted scraping MCP.

Read only public pages, and check robots.txt, the site's terms and the provider's acceptable-use policy first.

Frequently asked questions

What content types can an MCP tool return?

The MCP specification's tools page (2026-07-28 revision) lists five types for the content field of a tool result: text, image, audio, resource links and embedded resources. Images and audio carry base64 data and a mimeType. A result can mix several items of different types.

What is structuredContent in an MCP tool result?

It is a JSON value in the structuredContent field of a tool result. It can be any JSON value and must conform to the tool's outputSchema if the tool defines one. For backwards compatibility, the spec says a tool that returns structured content should also return the serialized JSON in a text block.

Does Playwright MCP send images to the client?

The Playwright MCP README documents an --image-responses option with the values allow, omit and only, and allow is the default. Its browser_take_screenshot tool saves the image to the output directory when no filename is given.

How do I keep a Chrome DevTools MCP snapshot out of the tool result?

Pass filePath to take_snapshot. The tool reference says the snapshot is then saved to that path instead of being attached to the response. take_screenshot and the request and response bodies of get_network_request work the same way.

Sources

  1. MCP specification 2026-07-28: Tools (Documentation)
  2. Playwright MCP README (Documentation)
  3. Chrome DevTools MCP tool reference (Documentation)