Skip to content

Commit ffaa784

Browse files
committed
docs(docs/ai-coder/agents): describe images and PDFs in workspace MCP tool results
Workspace MCP tool results now keep embedded resources, so an image or a PDF from a .mcp.json server reaches the model as a file. Older agents still drop embedded resources.
1 parent 83f5561 commit ffaa784

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎docs/coder-agents/extending-agents.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,13 @@ Every workspace MCP tool call is proxied back through the workspace agent, so a
458458

459459
Tool names are prefixed with the server name as `serverName__toolName` to avoid collisions between servers and with built-in tools.
460460

461+
### Tool results
462+
463+
A tool result can include an image or a PDF, and the model receives it as a file.
464+
The model receives at most one image or PDF from each tool result.
465+
An outdated workspace agent drops embedded resources, such as PDFs, from tool results.
466+
For the provider and size rules, refer to [Tool results](./platform-controls/mcp-servers.md#tool-results).
467+
461468
### Timeouts
462469

463470
- **Server connect**:

0 commit comments

Comments
 (0)