Home / Servers / Vercel API / read_session_file
Read a file
An MCP tool from the Vercel API server, hosted on mcp.hjlabs.in.
Read a file Downloads the contents of a file from a session's filesystem. The file content is returned as a binary stream with appropriate Content-Disposition headers for file download. [POST /v2/sandboxes/sessions/{sessionId}/fs/read]
Name on the gateway: vercel_api__read_session_file · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
sessionId required | string | The unique identifier of the session to read the file from. |
teamId | string | The Team identifier to perform the request on behalf of. |
slug | string | The Team slug to perform the request on behalf of. |
cwd | string | The base directory for resolving relative paths. If not specified, paths are… |
path required | string | The path of the file to read. Can be absolute or relative to the working… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "vercel_api__read_session_file",
"arguments": {
"sessionId": "…",
"path": "…"
}
}Or connect the Vercel API server directly, which lists 472 tools including this one:
claude mcp add --transport http hj-vercel-api https://mcp.hjlabs.in/mcp/vercel-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the read a file tool with sessionId set to ….