Agent workspace
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.
授权
bearerAuth 授权Bearer <token>
位置: header
路径参数
orgId*string
id*string
查询参数
repo?string
长度
1 <= length <= 256sessionId?string
长度
1 <= lengthpath*string
长度
1 <= lengthoffset?integer
范围
0 <= value <= 9007199254740991limit?integer
范围
0 < 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}