v21

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01144108427.9 KB
Agentic

Get File

Return the contents of a sandboxed file as text (or as an attachment).

Raises: HTTPException(400): The path shape is invalid (traversal, absolute, null byte, etc.). No I/O is attempted. HTTPException(404): The file does not exist in the requesting user's sandbox. Same status for sandbox-internal "not found" and for "path resolves outside the user namespace" — by design, to avoid leaking namespace existence to another tenant. HTTPException(413): The file is larger than MAX_FILE_SIZE_BYTES. HTTPException(415): The file is binary (null byte in the first 8 KiB).

get/api/v1/agentic/files

Query parameters

pathstring required
downloadboolean

Response

Successful Response

{"stackTrail":"paths:/api/v1/agentic/files:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}