Read an MCP resource
Reads one resource from an MCP server you added in Settings › Agents & MCP and keeps its text, or its parsed JSON.
Read uri from server
Details #
Reads a resource (a thing with a URI, such as github://repos/acme/app/issues/7) from one of the MCP servers in Settings › Agents. into gets an object with text (the content as text), json (the content parsed, present when the type is JSON or the text parses as an object or list), mimeType, uri and server.
Reading changes nothing on the server, so it needs the server to be turned on but no entry in the tool allowlist, and it asks nobody. A dry run reads for real.
- Read github://repos/acme/app/pulls/42 from github
- Show “PR 42 is {{ pr.json.state }}”
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
server | text | Yes | The server's name as it appears in Settings › Agents & MCP. | |
uri | text | Yes | The resource's address. Text values may contain {{ }}. | |
into | text | Variable that receives the object. | ||
sample | any value |
Every step also accepts label, onFailure, timeout and dryRunSafe.
Gotchas #
A binary resource has no text;
textthen reads like[binary 2048 bytes].If the server has no such resource, the step fails with that server's name and the address.
See also #
Call an MCP tool, An MCP resource changes, An MCP resource says