Agentic

Get File

Return the contents of a sandboxed file as text (or as an attachment).<br><br>Raises:<br> HTTPException(400): The path shape is invalid (traversal, absolute,<br> null byte, etc.). No I/O is attempted.<br> HTTPException(404): The file does not exist in the requesting user's<br> sandbox. Same status for sandbox-internal "not found" and for<br> "path resolves outside the user namespace" — by design, to avoid<br> leaking namespace existence to another tenant.<br> HTTPException(413): The file is larger than MAX_FILE_SIZE_BYTES.<br> 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"}

Changes