Goro commited on
Commit
d226b82
·
1 Parent(s): 1b1304a

Add file tool return value doc

Browse files
Files changed (1) hide show
  1. docs/servers/tools.mdx +1 -0
docs/servers/tools.mdx CHANGED
@@ -258,6 +258,7 @@ FastMCP automatically converts the value returned by your function into the appr
258
  - **`bytes`**: Base64 encoded and sent as `BlobResourceContents` (often within an `EmbeddedResource`).
259
  - **`fastmcp.utilities.types.Image`**: A helper class for easily returning image data. Sent as `ImageContent`.
260
  - **`fastmcp.utilities.types.Audio`**: A helper class for easily returning audio data. Sent as `AudioContent`.
 
261
  - **A list of any of the above**: Automatically converts each item appropriately.
262
  - **`None`**: Results in an empty response (no content is sent back to the client).
263
 
 
258
  - **`bytes`**: Base64 encoded and sent as `BlobResourceContents` (often within an `EmbeddedResource`).
259
  - **`fastmcp.utilities.types.Image`**: A helper class for easily returning image data. Sent as `ImageContent`.
260
  - **`fastmcp.utilities.types.Audio`**: A helper class for easily returning audio data. Sent as `AudioContent`.
261
+ - **`fastmcp.utilities.types.File`**: A helper class for easily returning binary data as base64-encoded content. Sent as `EmbeddedResource`.
262
  - **A list of any of the above**: Automatically converts each item appropriately.
263
  - **`None`**: Results in an empty response (no content is sent back to the client).
264