Claude Platform Docs

Resources

Add Session Resource
client.beta.sessions.resources.add(stringsessionID, ResourceAddParamsparams, RequestOptionsoptions?): BetaManagedAgentsFileResource
POST/v1/sessions/{session_id}/resources
List Session Resources
client.beta.sessions.resources.list(stringsessionID, ResourceListParamsparams?, RequestOptionsoptions?): PageCursor<BetaManagedAgentsSessionResource>
GET/v1/sessions/{session_id}/resources
Get Session Resource
client.beta.sessions.resources.retrieve(stringresourceID, ResourceRetrieveParamsparams, RequestOptionsoptions?): ResourceRetrieveResponse
GET/v1/sessions/{session_id}/resources/{resource_id}
Update Session Resource
client.beta.sessions.resources.update(stringresourceID, ResourceUpdateParamsparams, RequestOptionsoptions?): ResourceUpdateResponse
POST/v1/sessions/{session_id}/resources/{resource_id}
Delete Session Resource
client.beta.sessions.resources.delete(stringresourceID, ResourceDeleteParamsparams, RequestOptionsoptions?): BetaManagedAgentsDeleteSessionResource
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Models
BetaManagedAgentsDeleteSessionResource { id, type }

Confirmation of resource deletion.

id: string
type: "session_resource_deleted"
BetaManagedAgentsFileResource { id, created_at, file_id, 3 more }
id: string
created_at: string

A timestamp in RFC 3339 format

formatdate-time
file_id: string
mount_path: string
type: "file"
updated_at: string

A timestamp in RFC 3339 format

formatdate-time
BetaManagedAgentsGitHubRepositoryResource { id, created_at, mount_path, 4 more }
BetaManagedAgentsMemoryStoreResource { memory_store_id, type, access, 4 more }

A memory store attached to an agent session.

BetaManagedAgentsSessionResource = BetaManagedAgentsGitHubRepositoryResource { id, created_at, mount_path, 4 more } | BetaManagedAgentsFileResource { id, created_at, file_id, 3 more } | BetaManagedAgentsMemoryStoreResource { memory_store_id, type, access, 4 more }

A memory store attached to an agent session.

One of the following:
ResourceRetrieveResponse = BetaManagedAgentsGitHubRepositoryResource { id, created_at, mount_path, 4 more } | BetaManagedAgentsFileResource { id, created_at, file_id, 3 more } | BetaManagedAgentsMemoryStoreResource { memory_store_id, type, access, 4 more }

The requested session resource.

One of the following:
ResourceUpdateResponse = BetaManagedAgentsGitHubRepositoryResource { id, created_at, mount_path, 4 more } | BetaManagedAgentsFileResource { id, created_at, file_id, 3 more } | BetaManagedAgentsMemoryStoreResource { memory_store_id, type, access, 4 more }

The updated session resource.

One of the following: