Cloud provider
Connect your Modal workspace to map its environments, apps, functions, web endpoints, sandboxes, volumes, secrets, queues, and dicts into the context graph. Agents can then reason about what runs where, what each function depends on, and what changed between syncs.

Connect

Connect Modal from the terminal. Pass --help for the flags Modal accepts, plus --no-browser for headless environments.

Terminal
polylane cloud connect --provider modal

Tools

5

Operations agents can perform in threads and automations.

Get Logs
Get Modal app logs: per-bucket volume by stream plus sampled lines
List Sandboxes
List Modal sandboxes in an environment, with their state and resource shape
List Deployments
List Modal app deployments: version, who deployed, and when
Describe App
Describe one Modal app: state, deploy provenance, and the functions inside it
Get Cost
Get metered Modal spend, for one app or broken down across the workspace

Supported resources

10

Resource types that show up in your infrastructure graph.

Environment
App
Function
Class
Sandbox
Image
Volume
Secret
Queue
Dict

Automation triggers

4

Events from Modal that can start an automation.

Modal Deploy
Fires when a Modal app is redeployed, which Modal reports as its deploy version moving on.
Cloud Account Connected
Fires once when a user connects a new cloud account to the workspace.
Cloud Account Synced
Fires each time a cloud account finishes a full or incremental sync.
Infra Node Created
Fires once per new infrastructure resource discovered during a cloud sync.

Automation templates

1

Pre-built automations that use Modal. Open one to see its trigger, instructions, and actions.