Claude Platform Docs

Resources

Add Session Resource
client.Beta.Sessions.Resources.Add(ctx, sessionID, params) (*BetaManagedAgentsFileResource, error)
POST/v1/sessions/{session_id}/resources
List Session Resources
client.Beta.Sessions.Resources.List(ctx, sessionID, params) (*PageCursor[BetaManagedAgentsSessionResourceUnion], error)
GET/v1/sessions/{session_id}/resources
Get Session Resource
client.Beta.Sessions.Resources.Get(ctx, resourceID, params) (*BetaSessionResourceGetResponseUnion, error)
GET/v1/sessions/{session_id}/resources/{resource_id}
Update Session Resource
client.Beta.Sessions.Resources.Update(ctx, resourceID, params) (*BetaSessionResourceUpdateResponseUnion, error)
POST/v1/sessions/{session_id}/resources/{resource_id}
Delete Session Resource
client.Beta.Sessions.Resources.Delete(ctx, resourceID, params) (*BetaManagedAgentsDeleteSessionResource, error)
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Models
type BetaManagedAgentsDeleteSessionResource struct{…}

Confirmation of resource deletion.

ID string
Type BetaManagedAgentsDeleteSessionResourceType
type BetaManagedAgentsFileResource struct{…}
ID string
CreatedAt Time

A timestamp in RFC 3339 format

formatdate-time
FileID string
MountPath string
Type BetaManagedAgentsFileResourceType
UpdatedAt Time

A timestamp in RFC 3339 format

formatdate-time
type BetaManagedAgentsGitHubRepositoryResource struct{…}
ID string
CreatedAt Time

A timestamp in RFC 3339 format

formatdate-time
MountPath string
Type BetaManagedAgentsGitHubRepositoryResourceType
UpdatedAt Time

A timestamp in RFC 3339 format

formatdate-time
URL string
Checkout BetaManagedAgentsGitHubRepositoryResourceCheckoutUnion Optional
One of the following:
type BetaManagedAgentsBranchCheckout struct{…}
Name string

Branch name to check out.

minLength1
maxLength255
Type BetaManagedAgentsBranchCheckoutType
type BetaManagedAgentsCommitCheckout struct{…}
Sha string

Full commit SHA to check out.

minLength7
maxLength64
Type BetaManagedAgentsCommitCheckoutType
type BetaManagedAgentsMemoryStoreResource struct{…}

A memory store attached to an agent session.

MemoryStoreID string

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

Type BetaManagedAgentsMemoryStoreResourceType
Access BetaManagedAgentsMemoryStoreResourceAccess Optional

Access mode for an attached memory store.

One of the following:
const BetaManagedAgentsMemoryStoreResourceAccessReadWrite BetaManagedAgentsMemoryStoreResourceAccess = "read_write"
const BetaManagedAgentsMemoryStoreResourceAccessReadOnly BetaManagedAgentsMemoryStoreResourceAccess = "read_only"
Description string Optional

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 Optional

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

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 Optional

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

type BetaManagedAgentsSessionResourceUnion interface{…}

A memory store attached to an agent session.

One of the following: