Claude Platform Docs

Resources

Add Session Resource
BetaManagedAgentsFileResource beta().sessions().resources().add(ResourceAddParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/v1/sessions/{session_id}/resources
List Session Resources
ResourceListPage beta().sessions().resources().list(ResourceListParamsparams = ResourceListParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/v1/sessions/{session_id}/resources
Get Session Resource
ResourceRetrieveResponse beta().sessions().resources().retrieve(ResourceRetrieveParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/v1/sessions/{session_id}/resources/{resource_id}
Update Session Resource
ResourceUpdateResponse beta().sessions().resources().update(ResourceUpdateParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/v1/sessions/{session_id}/resources/{resource_id}
Delete Session Resource
BetaManagedAgentsDeleteSessionResource beta().sessions().resources().delete(ResourceDeleteParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Models
class BetaManagedAgentsDeleteSessionResource:

Confirmation of resource deletion.

String id
Type type
class BetaManagedAgentsFileResource:
String id
LocalDateTime createdAt

A timestamp in RFC 3339 format

formatdate-time
String fileId
String mountPath
Type type
LocalDateTime updatedAt

A timestamp in RFC 3339 format

formatdate-time
class BetaManagedAgentsGitHubRepositoryResource:
String id
LocalDateTime createdAt

A timestamp in RFC 3339 format

formatdate-time
String mountPath
Type type
LocalDateTime updatedAt

A timestamp in RFC 3339 format

formatdate-time
String url
Optional<Checkout> checkout
One of the following:
class BetaManagedAgentsBranchCheckout:
String name

Branch name to check out.

minLength1
maxLength255
Type type
class BetaManagedAgentsCommitCheckout:
String sha

Full commit SHA to check out.

minLength7
maxLength64
Type type
class BetaManagedAgentsMemoryStoreResource:

A memory store attached to an agent session.

String memoryStoreId

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

Type type
Optional<Access> access

Access mode for an attached memory store.

One of the following:
READ_WRITE("read_write")
READ_ONLY("read_only")
Optional<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.

Optional<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
Optional<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.

Optional<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: A class that can be one of several variants.union

A memory store attached to an agent session.