Clarify client handling of embedded binary tool resources (#1762)

Co-authored-by: Luis Rodriguez <25299418+luisangelrod@users.noreply.github.com>
This commit is contained in:
Luis Rodriguez 2026-08-04 20:06:51 -04:00 • committed by GitHub
commit 24b122afa4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -121,6 +121,8 @@ public static EmbeddedResourceBlock GetBinaryData(string id)
}
```
The SDK sends binary embedded resources using the MCP resource shape: a URI, MIME type, and base64-encoded `blob`. It does not convert formats such as `application/pdf` into images. How an embedded resource is rendered or made available to a model depends on the client. When targeting clients that do not support a binary format, consider also returning a text representation or another client-supported content block.
#### Mixed content
Tools can return multiple content blocks by returning `IEnumerable<ContentBlock>`: