Mounts API
The Mounts API lets you mount cloud storage buckets to agent sandboxes, giving agents read or write access to external files. Access viaclient.mounts:
Methods
getMounts(agentSlug)
List all mounts for an agent.
Returns:
Promise<Mount[]>
Example:
addMount(agentSlug, options)
Add a storage bucket mount to an agent.
Returns:
Promise<Mount>
Example:
updateMount(agentSlug, mountId, options)
Update an existing mount.
Returns:
Promise<Mount>
removeMount(agentSlug, mountId)
Remove a mount from an agent.
Returns:
Promise<void>
See Also
- cast mounts — CLI equivalent
- Storage API — Manage buckets
- Types — TypeScript interfaces