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

NameTypeDescription
sessionId requiredstringThe unique identifier of the session to read the file from.
teamIdstringThe Team identifier to perform the request on behalf of.
slugstringThe Team slug to perform the request on behalf of.
cwdstringThe base directory for resolving relative paths. If not specified, paths are…
path requiredstringThe 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:

call_tool arguments
{
  "name": "vercel_api__read_session_file",
  "arguments": {
    "sessionId": "…",
    "path": "…"
  }
}

Or connect the Vercel API server directly, which lists 472 tools including this one:

Run in your terminal
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 ….

More from Vercel API