Claude Platform Docs

Resources

Add Session Resource
beta.sessions.resources.add(session_id, **kwargs) -> BetaManagedAgentsFileResource
POST/v1/sessions/{session_id}/resources
List Session Resources
beta.sessions.resources.list(session_id, **kwargs) -> PageCursor<BetaManagedAgentsSessionResource>
GET/v1/sessions/{session_id}/resources
Get Session Resource
beta.sessions.resources.retrieve(resource_id, **kwargs) -> ResourceRetrieveResponse
GET/v1/sessions/{session_id}/resources/{resource_id}
Update Session Resource
beta.sessions.resources.update(resource_id, **kwargs) -> ResourceUpdateResponse
POST/v1/sessions/{session_id}/resources/{resource_id}
Delete Session Resource
beta.sessions.resources.delete(resource_id, **kwargs) -> BetaManagedAgentsDeleteSessionResource
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Models
class BetaManagedAgentsDeleteSessionResource { id, type }

Confirmation of resource deletion.

id: String
type: :session_resource_deleted
class BetaManagedAgentsFileResource { id, created_at, file_id, 3 more }
id: String
created_at: Time

A timestamp in RFC 3339 format

formatdate-time
file_id: String
mount_path: String
type: :file
updated_at: Time

A timestamp in RFC 3339 format

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

A memory store attached to an agent session.

memory_store_id: String

The memory store ID (memstore_...). Must belong to the caller's organization and workspace.

type: :memory_store
access: :read_write | :read_only

Access mode for an attached memory store.

One of the following:
:read_write
:read_only
description: String

Description of the memory store, snapshotted at attach time. Rendered into the agent's system prompt. Empty string when the store has no description.

instructions: String

Per-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.

maxLength4096
mount_path: String

Filesystem path where the store is mounted in the session container, e.g. /mnt/memory/user-preferences. Derived from the store's name. Output-only.

name: String

Display name of the memory store, snapshotted at attach time. Later edits to the store's name do not propagate to this resource.

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: