Claude Platform Docs

Resources

Add Session Resource
BetaManagedAgentsFileResource Beta.Sessions.Resources.Add(parameters, cancellationToken = default)
POST/v1/sessions/{session_id}/resources
List Session Resources
ResourceListPage Beta.Sessions.Resources.List(parameters, cancellationToken = default)
GET/v1/sessions/{session_id}/resources
Get Session Resource
ResourceRetrieveResponse Beta.Sessions.Resources.Retrieve(parameters, cancellationToken = default)
GET/v1/sessions/{session_id}/resources/{resource_id}
Update Session Resource
ResourceUpdateResponse Beta.Sessions.Resources.Update(parameters, cancellationToken = default)
POST/v1/sessions/{session_id}/resources/{resource_id}
Delete Session Resource
BetaManagedAgentsDeleteSessionResource Beta.Sessions.Resources.Delete(parameters, cancellationToken = default)
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Models
class BetaManagedAgentsDeleteSessionResource { Type = "session_resource_deleted"; ID; }

Confirmation of resource deletion.

JsonElement Type = "session_resource_deleted"
required string ID
class BetaManagedAgentsFileResource { Type = "file"; ID; CreatedAt; /* 3 more */ }
JsonElement Type = "file"
required string ID
required DateTimeOffset CreatedAt

A timestamp in RFC 3339 format

formatdate-time
required string FileID
required string MountPath
required DateTimeOffset UpdatedAt

A timestamp in RFC 3339 format

formatdate-time
class BetaManagedAgentsGitHubRepositoryResource { Type = "github_repository"; ID; CreatedAt; /* 4 more */ }
class BetaManagedAgentsMemoryStoreResource { Type = "memory_store"; MemoryStoreID; Access; /* 4 more */ }

A memory store attached to an agent session.

JsonElement Type = "memory_store"
required string MemoryStoreID

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

Access? Access

Access mode for the mounted store. Defaults to read_write. read_only mounts the store as a read-only filesystem.

One of the following:
ReadWrite("read_write")
ReadOnly("read_only")
string Description

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

string? Instructions

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
string? MountPath

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.

string? Name

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

class BetaManagedAgentsSessionResource: union