读取电脑文件内容
读取电脑文件内容,仅限当前租户。HTTP 文件上限 16 MiB;支持单段 Range,超限用 connect 签发的 sandbox 连接读取。
先调用「创建计算机」,用返回的计算机 ID 替换 cmp_123。
/agent/v1/computers/{computer_id}/files/content● 支持请求参数
computer_idstring必填path: Computer id (cmp_...), as returned by computers.create or computers.list.
pathstring必填query: Absolute path of the file whose content to download, as returned in the path field of computers.files.list.
返回
200
Praxis 超集:MA 只有会话级临时容器与 memory_stores,没有可长期存续、可浏览的整台电脑。归档后文件仍可读,但不能用于新会话。environment_id 是可空配方引用;电脑默认使用 light sandbox,sandbox_id 为 SDK 可用的公开 ID。分页包含归档电脑。
错误按 Anthropic 错误格式返回(type / message / request_id),参见 错误码
响应
HTTP 200
Raw file bytes (at most 16 MiB); Content-Type is inferred from the extension. ETag is present only when a digest is available. Larger files require the sandbox connection issued by connect.
application/octet-stream
| 名称 | 类型 | 说明 |
|---|---|---|
| $ | string (binary) |
HTTP 206
Single byte range
application/octet-stream
| 名称 | 类型 | 说明 |
|---|---|---|
| $ | string (binary) |