Claude Platform Docs

リソース

セッションリソースを追加
beta.sessions.resources.add(session_id, **kwargs) -> BetaManagedAgentsFileResource
POST/v1/sessions/{session_id}/resources
セッションリソースの一覧
beta.sessions.resources.list(session_id, **kwargs) -> PageCursor<BetaManagedAgentsSessionResource>
GET/v1/sessions/{session_id}/resources
セッションリソースを取得
beta.sessions.resources.retrieve(resource_id, **kwargs) -> ResourceRetrieveResponse
GET/v1/sessions/{session_id}/resources/{resource_id}
セッションリソースを更新
beta.sessions.resources.update(resource_id, **kwargs) -> ResourceUpdateResponse
POST/v1/sessions/{session_id}/resources/{resource_id}
セッションリソースを削除
beta.sessions.resources.delete(resource_id, **kwargs) -> BetaManagedAgentsDeleteSessionResource
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Models
class BetaManagedAgentsDeleteSessionResource { type: :session_resource_deleted, id }

Confirmation of resource deletion.

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

A timestamp in RFC 3339 format

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

A timestamp in RFC 3339 format

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

A memory store attached to an agent session.

type: :memory_store
memory_store_id: String

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

access: :read_write | :read_only

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

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.

One of the following:

The requested session resource.

One of the following:
One of the following: