AnthropicClaude 托管智能体
读取会话资源
读取会话上一份附加资源的详情。
GET
/anthropic/v1/sessions/{session_id}/resources/{resource_id}◐ 部分支持请求参数
session_idstring必填path: 会话 ID(路径或查询参数)。
resource_idstring必填path: 路径参数:会话资源 ID。
session_idstring必填query: 会话 ID(路径或查询参数)。
返回
501
支持 file 类型资源的持久化、查询和解除关联,单会话最多 500 条。文件须属于当前租户且有效。默认路径为 /mnt/session/uploads/<file_id>,自定义路径归一到该目录,拒绝父目录遍历。不修改文件内容;本批尚不将资源同步到沙箱。
错误按 Claude Managed Agents 格式返回,参见 错误码
响应
HTTP 200
Successful response
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| id | string | |
| created_at | string | A timestamp in RFC 3339 format |
| mount_path | string | null | 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. |
| type | string | |
| updated_at | string | A timestamp in RFC 3339 format |
| url | string | |
| checkout | null | object | |
| checkout.name | string | Branch name to check out. |
| checkout.type | string | |
| checkout.sha | string | Full commit SHA to check out. |
| file_id | string | |
| memory_store_id | string | The memory store ID (memstore_...). Must belong to the caller's organization and workspace. |
| access | null | string | Access mode for an attached memory store. |
| 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 | null | 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. |
| name | null | string | Display name of the memory store, snapshotted at attach time. Later edits to the store's name do not propagate to this resource. |