Read a file
Get a Basement file’s metadata and a temporary download URL by ID. For text files up to 256 KB, also returns the text in content. Records an agent read.
Authentication
AuthorizationBearer
A Basement key (bsmt_...), from Agents, Connect in the app.
Request
This endpoint expects an object.
fileId
The file ID from list_files, list_skills or search
agentName
Optional agent name for attribution
Response
The tool's answer.
id
name
kind
mimeType
sizeBytes
versionCount
downloadUrl
A temporary URL to download the file
content
The file's text, for text files up to 256 KB
folderId
folderName
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error