Agent

ComputersFilesList

Tenant-owned durable computer resource.

Call Create computer first and replace cmp_123 with its returned ID.

GET /agent/v1/computers/{computer_id}/files● Supported

Request parameters

  • computer_idstring必填

    path: Computer id (cmp_...), as returned by computers.create or computers.list.

  • pathstring可选
    默认 "/"

    query: 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; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.

Errors follow the Anthropic error format (type / message / request_id) — see error codes

Response

HTTP 200

Computer result

application/json

NameTypeDescription
dataarray<object>Items of this page, in the order requested by the call.
data[].pathstringAbsolute path of the entry on the computer.
data[].namestringName of the entry or object.
data[].typestringKind of entry: a file, a directory or a symbolic link.
data[].sizeintegerSize in bytes.
data[].mime_typestringMIME type of the file.
data[].read_onlybooleanTrue when the entry cannot be modified through the API.
data[].digeststring | nullContent digest of the file; null when not computed.
data[].updated_atstring | nullRFC 3339 time at which the object was last modified.
has_morebooleanWhether more items exist beyond this page.