Skip to main content

Mounts API

The Mounts API lets you mount cloud storage buckets to agent sandboxes, giving agents read or write access to external files. Access via client.mounts:

Methods

getMounts(agentSlug)

List all mounts for an agent.
Parameters: Returns: Promise<Mount[]> Example:

addMount(agentSlug, options)

Add a storage bucket mount to an agent.
Parameters: Returns: Promise<Mount> Example:

updateMount(agentSlug, mountId, options)

Update an existing mount.
Parameters: Returns: Promise<Mount>

removeMount(agentSlug, mountId)

Remove a mount from an agent.
Parameters: Returns: Promise<void>

See Also