unwrap
Extract the full text from a result reference and save it to a file, providing a path for direct reading, searching, or passing to other tools.
Instructions
Unwrap an agent result ref — writes the full text to a file and returns the path.
All combinators return refs (metadata without text). Use unwrap to extract the text when you need it. The text is written to a .md file alongside the result, so you can Read() it, Grep it, or pass it to other tools without bloating the MCP protocol.
Args: ref: A ref string like "run_id/agent_id", or a JSON object with a "ref" field.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ref": "<ref>"
},
"name": "unwrap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |