Read a workspace file
Proxy one byte slice of a file live from the owning daemon (64 KiB default; page with offset while truncated). Pass sessionId to read an authorized isolated session worktree. A missing file is data (exists:false); binary files come back encoding:none. Pass repo (owner/repo) to address one of the agent’s authorized additional repositories instead of its primary workspace; an unauthorized name reads 404, and a daemon too old to scope by repository yields 409. Pass root (uploads or outputs) with sessionId to address that area of the session’s files directory instead of a checkout: it needs only the session’s visibility, so a session sharing the agent’s checkout qualifies too; root without sessionId, or with repo, is 400, and a daemon too old to serve session files yields 409 DAEMON_FEATURE_MISSING.
授权
bearerAuth 位置: header
路径参数
查询参数
1 <= length <= 2561 <= length值于
- "uploads"
- "outputs"
1 <= length0 <= value <= 90071992547409910 < value <= 65536响应主体
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/orgs/string/agents/string/workspace/file?path=string"{ "path": "string", "exists": true, "type": "file", "size": 0, "mtime": "string", "encoding": "utf8", "content": "string", "offset": 0, "nextOffset": 0, "truncated": true}