Claude Platform Docs

Resources

Add Session Resource
$ ant beta:sessions:resources add
POST/v1/sessions/{session_id}/resources
List Session Resources
$ ant beta:sessions:resources list
GET/v1/sessions/{session_id}/resources
Get Session Resource
$ ant beta:sessions:resources retrieve
GET/v1/sessions/{session_id}/resources/{resource_id}
Update Session Resource
$ ant beta:sessions:resources update
POST/v1/sessions/{session_id}/resources/{resource_id}
Delete Session Resource
$ ant beta:sessions:resources delete
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Models
beta_managed_agents_delete_session_resource: object{ id, type }

Confirmation of resource deletion.

id: string
type: "session_resource_deleted"
beta_managed_agents_file_resource: object{ 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
beta_managed_agents_github_repository_resource: object{ id, created_at, mount_path, 4 more }
beta_managed_agents_memory_store_resource: object{ 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: optional "read_write" or "read_only"

Access mode for an attached memory store.

One of the following:
"read_write"
"read_only"
description: optional 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: optional 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: optional 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: optional string

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

beta_managed_agents_session_resource: BetaManagedAgentsGitHubRepositoryResource { id, created_at, mount_path, 4 more } or BetaManagedAgentsFileResource { id, created_at, file_id, 3 more } or BetaManagedAgentsMemoryStoreResource { memory_store_id, type, access, 4 more }

A memory store attached to an agent session.