files changedmanaged-agents/files
Nearest release: v2.1.267, published under an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+51added
Lines−20removed
From line
242
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits24to this page, all time
The whole hunk
from line 242, old and new numbered
/
from line 242
242242Mount multiple files by adding entries to the `resources` array:
243243
244244<CodeGroup>
245 ```json cURL
246 "resources": [
247 { "type": "file", "file_id": "file_abc123", "mount_path": "/data.csv" },
248 { "type": "file", "file_id": "file_def456", "mount_path": "/config.json" },
249 { "type": "file", "file_id": "file_ghi789", "mount_path": "/src/main.py" }
250 ]
245 ```bash cURL
246 curl -fsSL https://api.anthropic.com/v1/sessions \
247 -H "x-api-key: $ANTHROPIC_API_KEY" \
248 -H "anthropic-version: 2023-06-01" \
249 -H "anthropic-beta: managed-agents-2026-04-01" \
250 -H "content-type: application/json" \
251 -d '{
252 "agent": "agent_01J8XkN5uT3vHpLqRfWdY2",
253 "environment_id": "env_01K2mPsT7hNwR4jXuLvCqD8",
254 "resources": [
255 {
256 "type": "file",
257 "file_id": "file_011CNha8iCJcU1wXNR6q4V8w",
258 "mount_path": "/data.csv"
259 },
260 {
261 "type": "file",
262 "file_id": "file_011CPMxVD3fHLUhvTqtsQA5w",
263 "mount_path": "/config.json"
264 },
265 {
266 "type": "file",
267 "file_id": "file_011CRb3kQ7tWx9ZsLmDe2Vh4",
268 "mount_path": "/src/main.py"
269 }
270 ]
271 }'
251272 ```
252273
253 ```yaml CLI
254 resources:
255 - type: file
256 file_id: file_abc123
257 mount_path: /data.csv
258 - type: file
259 file_id: file_def456
260 mount_path: /config.json
261 - type: file
262 file_id: file_ghi789
263 mount_path: /src/main.py
264 ```
274 <MultiFileExample language="cli" label="CLI">
275 ```bash CLI
276 ant beta:sessions create \
277 --agent agent_01J8XkN5uT3vHpLqRfWdY2 \
278 --environment-id env_01K2mPsT7hNwR4jXuLvCqD8 < session.yaml
279 ```
280
281 <File filename="session.yaml">
282 ```yaml
283 resources:
284 - type: file
285 file_id: file_011CNha8iCJcU1wXNR6q4V8w
286 mount_path: /data.csv
287 - type: file
288 file_id: file_011CPMxVD3fHLUhvTqtsQA5w
289 mount_path: /config.json
290 - type: file
291 file_id: file_011CRb3kQ7tWx9ZsLmDe2Vh4
292 mount_path: /src/main.py
293 ```
294 </File>
295 </MultiFileExample>
265296
266297 ```python Python
267298 resources = [
No line in this hunk matches that.