Read tool output
When your application executes a tool through the , the response’s output object carries what the tool returned. This page is for developers who call POST /v1/tools/execute, directly or through the Arcade SDKs, and need to know which part of the result to read. The same response backs runs in the Playground.
The fields of output
An execution’s output carries up to three fields that describe the ’s result. content and structured_content report what a remote server sent:
| Field | What it carries | When it is present |
|---|---|---|
value | The tool’s result as a single value, ready to hand to a model | On every successful execution |
content | The MCP content blocks the tool’s server sent (text, image, audio, resource_link, resource, and so on), unchanged | When the server sent at least one content block |
structured_content | The server’s structuredContent object, unchanged | When the server sent structured content, including beside an error |
output can also carry error, authorization, and logs fields, which this page doesn’t cover. See Tool error handling for error.
value
value depends on what the server sent:
- When the server sent structured content,
valueis that structured content. - Otherwise,
valueis the result’s text. One text block gives a string, and several text blocks give a list with one entry per block.
For servers that speak protocol version 2025-11-25, Arcade parses a text block that holds a JSON object or array into that object or array. Servers on version 2026-07-28 keep the text as the raw string they sent. value carries text and structured content only; images, audio, and resources appear in content.
For tools you build with Arcade’s framework, value is what your function returns.
content
content is the list of content blocks the server sent, in ’s content-block shape, including every block type and any annotations or _meta. Use it when you need what value leaves out: the text that accompanies structured content, an image, or a block’s annotations.
structured_content
structured_content is the server’s structuredContent object exactly as sent. It is absent when the server sent none, so its presence tells you the result was structured, which value alone can’t: a value that is an object could also be text that parsed as JSON. When a call fails, structured_content carries any structured content the server sent with its error.
Arcade applies secret redaction and any Contextual Access post-execution hooks before it returns the result, so all three fields reflect the result after those steps. Post-execution hooks receive value and content, not structured_content. When the server sends structured content, value holds a copy of it, so a hook changes the structured content by editing value. If a hook changes value, the response leaves out structured_content, and content too if the hook left it as it was, so the unedited original isn’t returned beside the hook’s version. Hooks never see an error result’s structured content, so it is left out whenever a hook runs.
Examples
These examples show the output of a tool on a remote server for the three shapes a result can take.
Text and structured content
The server sends a text block, an image, and a structured object:
{
"content": [
{
"type": "text",
"text": "The account is ACCT-1042.",
"annotations": { "audience": ["user"] }
},
{ "type": "image", "data": "aW1n", "mimeType": "image/png" }
],
"structuredContent": { "account": "ACCT-1042" }
}value is the structured object, and content keeps the text and the image:
{
"value": { "account": "ACCT-1042" },
"content": [
{
"type": "text",
"text": "The account is ACCT-1042.",
"annotations": { "audience": ["user"] }
},
{ "type": "image", "data": "aW1n", "mimeType": "image/png" }
],
"structured_content": { "account": "ACCT-1042" }
}Text only
The server sends one text block:
{ "content": [{ "type": "text", "text": "hello" }] }value is the text, and there is no structured_content:
{
"value": "hello",
"content": [{ "type": "text", "text": "hello" }]
}Structured content only
The server sends a structured object and no content blocks:
{ "content": [], "structuredContent": { "account": "ACCT-1042" } }value is the structured object, and there is no content:
{
"value": { "account": "ACCT-1042" },
"structured_content": { "account": "ACCT-1042" }
}Choose a field
Read value when you want one result to pass to a model. When you need a specific part of the result, read content for the server’s blocks or structured_content for its structured object, rather than inferring either from value.
Tool execution history records value and content with each attempt’s output, so you can see the blocks a returned when you debug a run. It does not record structured_content separately, because the recorded value holds it.
Related content
- Tool error handling: handle the
errorfield ofoutput - API reference: the full Execute request and response schemas
Last updated on