Claude Platform Docs

Recursos

Adicionar recurso de sessão
$client->beta->sessions->resources->add(string sessionID, string fileID, Type type, ?string mountPath, ?list<AnthropicBeta> betas, ?string workspaceID): ManagedAgentsFileResource
POST/v1/sessions/{session_id}/resources
Listar recursos de sessão
$client->beta->sessions->resources->list(string sessionID, ?int limit, ?string page, ?list<AnthropicBeta> betas, ?string workspaceID): PageCursor<ManagedAgentsSessionResource>
GET/v1/sessions/{session_id}/resources
Obter recurso de sessão
$client->beta->sessions->resources->retrieve(string resourceID, string sessionID, ?list<AnthropicBeta> betas, ?string workspaceID): ResourceGetResponse
GET/v1/sessions/{session_id}/resources/{resource_id}
Atualizar recurso de sessão
$client->beta->sessions->resources->update(string resourceID, string sessionID, string authorizationToken, ?list<AnthropicBeta> betas, ?string workspaceID): ResourceUpdateResponse
POST/v1/sessions/{session_id}/resources/{resource_id}
Excluir recurso de sessão
$client->beta->sessions->resources->delete(string resourceID, string sessionID, ?list<AnthropicBeta> betas, ?string workspaceID): ManagedAgentsDeleteSessionResource
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Models
class ManagedAgentsDeleteSessionResource { $type; $id; }
Type type
string id
class ManagedAgentsFileResource { $type; $id; $createdAt; /* 3 more */ }
Type type
string id
\Datetime createdAt

A timestamp in RFC 3339 format

string fileID
string mountPath
\Datetime updatedAt

A timestamp in RFC 3339 format

class ManagedAgentsGitHubRepositoryResource { $type; $id; $createdAt; /* 4 more */ }
Type type
string id
\Datetime createdAt

A timestamp in RFC 3339 format

string mountPath
\Datetime updatedAt

A timestamp in RFC 3339 format

string url
?Checkout checkout
class ManagedAgentsMemoryStoreResource { $type; $memoryStoreID; $access; /* 4 more */ }
Type type
string memoryStoreID

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

?Access access

Access mode for an attached memory store.

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

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

One of the following: