List Computer Files
Call Create computer first and replace cmp_123 with its returned ID.
/agent/v1/computers/{computer_id}/files● SupportedRequest parameters
computer_idstringrequiredpath: Computer id (cmp_...), as returned by computers.create or computers.list.
pathstringoptionalquery: Directory on the computer to list; absolute path as returned in the path field of an earlier listing. Omit it to list from the computer's root.
Returns
200
Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
Errors follow the Anthropic error format (type / message / request_id) — see error codes
Request
curl
# Call Create computer first and replace cmp_123 with its returned ID.
curl "https://api.deepraxis.com/agent/v1/computers/cmp_123/files?path=/home/user/workspace" \
-H "Authorization: Bearer $PRAXIS_API_KEY"Python
# Call Create computer first and replace cmp_123 with its returned ID.
import requests
opts = dict(
base_url="https://api.deepraxis.com/agent",
api_key="$PRAXIS_API_KEY",
)
# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.get(
f"{opts['base_url']}/v1/computers/cmp_123/files?path=/home/user/workspace",
headers={"Authorization": f"Bearer {opts['api_key']}"},
)
print(resp.status_code, resp.json())TypeScript
// Call Create computer first and replace cmp_123 with its returned ID.
const opts = {
baseURL: "https://api.deepraxis.com/agent",
apiKey: "$PRAXIS_API_KEY",
};
// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/computers/cmp_123/files?path=/home/user/workspace`, {
headers: { Authorization: `Bearer ${opts.apiKey}` },
});
console.log(resp.status, await resp.json());Response 200
{
"data": [],
"has_more": false,
"tier": "light"
}Response
HTTP 200
Computer result
application/json
| Name | Type | Description |
|---|---|---|
| data | array<object> | Items of this page, in the order requested by the call. |
| data[].path | string | Absolute path of the entry on the computer. |
| data[].name | string | Name of the entry or object. |
| data[].type | string | Kind of entry: a file, a directory or a symbolic link. |
| data[].size | integer | Size in bytes. |
| data[].mime_type | string | MIME type of the file. |
| data[].read_only | boolean | True when the entry cannot be modified through the API. |
| data[].digest | string | null | Content digest of the file; null when not computed. |
| data[].updated_at | string | null | RFC 3339 time at which the object was last modified. |
| has_more | boolean | Whether more items exist beyond this page. |
| tier | string | Machine tier used to read this directory: light is the lightweight computer; heavy is the full computer. |