AgentConnect
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.

GET
/v1/orgs/{orgId}/agents/{id}/workspace/file

授权

bearerAuth
授权Bearer <token>

位置: header

路径参数

orgId*string
id*string

查询参数

repo?string
长度1 <= length <= 256
sessionId?string
长度1 <= length
path*string
长度1 <= length
offset?integer
范围0 <= value <= 9007199254740991
limit?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}