DigitalOcean.ActionGateway reference
ActorLimit
Section titled “ActorLimit”Source:
packages/digitalocean/src/ActionGateway/ActorLimit.ts
Per-minute Action Gateway call limits for one actor, below your team’s
limits: one end user of your app can’t spend the whole team’s quota.
The actor must already exist, bound to an Endpoint or a session;
otherwise DigitalOcean answers actor not found. Destroying it clears the
limits it set.
ActorLimit: Limiting an Actor
Section titled “ActorLimit: Limiting an Actor”const endpoint = yield* DigitalOcean.ActionGateway.Endpoint("Research", { tools: ["exa_web_search"], actorId: "user-42",});yield* DigitalOcean.ActionGateway.ActorLimit("User42", { actorId: endpoint.actorId, limits: { webSearch: 10, otherTools: 60 },});Endpoint
Section titled “Endpoint”Source:
packages/digitalocean/src/ActionGateway/Endpoint.ts
A named Action Gateway MCP endpoint: a fixed set of tools, approval rules
and instructions that an agent connects to by URL. Each change publishes a
new immutable version; mcpUrl always serves the newest.
Endpoint: Publishing an Endpoint
Section titled “Endpoint: Publishing an Endpoint”Web search, with fetches needing approval
const endpoint = yield* DigitalOcean.ActionGateway.Endpoint("Research", { tools: ["exa_web_search", "exa_web_fetch"], policy: { default: "allow", rules: [{ tool: "exa_web_fetch", action: "ask" }], }, instructions: "Cite every source you use.",});Trim search results with an output view
const titles = yield* DigitalOcean.ActionGateway.OutputView("Titles", { tool: "exa_web_search", fields: ["results.title", "results.url"],});const endpoint = yield* DigitalOcean.ActionGateway.Endpoint("Research", { tools: ["exa_web_search"], outputViews: { exa_web_search: titles.name },});McpServer
Section titled “McpServer”Source:
packages/digitalocean/src/ActionGateway/McpServer.ts
Registers one of your remote MCP servers with the Action Gateway, so its tools join the catalog that toolbelts and agent sessions draw from.
McpServer: Registering a Server
Section titled “McpServer: Registering a Server”const token = yield* Config.Redacted("INTERNAL_MCP_TOKEN");yield* DigitalOcean.ActionGateway.McpServer("internal", { endpoint: "https://mcp.internal.example.com/mcp", apiKey: token, description: "Internal ticketing tools",});OutputView
Section titled “OutputView”Source:
packages/digitalocean/src/ActionGateway/OutputView.ts
A named projection of one tool’s output: calls through it return only the
listed fields, which keeps an agent’s context small. Use its name in an
Endpoint’s outputViews.
OutputView: Projecting a Tool’s Output
Section titled “OutputView: Projecting a Tool’s Output”const view = yield* DigitalOcean.ActionGateway.OutputView("Titles", { tool: "exa_web_search", fields: ["results.title", "results.url"],});ProviderCredential
Section titled “ProviderCredential”Source:
packages/digitalocean/src/ActionGateway/ProviderCredential.ts
An API key or OAuth client for one Action Gateway catalog provider, which connections to that provider then use. Secrets are write-only: DigitalOcean never returns them.
ProviderCredential: Registering a Credential
Section titled “ProviderCredential: Registering a Credential”An API key
const apiKey = yield* Config.Redacted("ABUSEIPDB_API_KEY");yield* DigitalOcean.ActionGateway.ProviderCredential("AbuseIpDb", { provider: "abuseipdb", apiKey,});An OAuth client, shared with the team
const clientSecret = yield* Config.Redacted("GITHUB_CLIENT_SECRET");yield* DigitalOcean.ActionGateway.ProviderCredential("GitHub", { provider: "github", oauthClient: { clientId: "Iv1.abc123", clientSecret }, shared: true,});Toolbelt
Section titled “Toolbelt”Source:
packages/digitalocean/src/ActionGateway/Toolbelt.ts
An Action Gateway toolbelt: a versioned set of tools from the catalog that
agent sessions and policies reference as toolbelt:<name>@<version>.
Adding or removing tools publishes a new version; deleting the toolbelt
deprecates every version.
Toolbelt: Creating a Toolbelt
Section titled “Toolbelt: Creating a Toolbelt”const belt = yield* DigitalOcean.ActionGateway.Toolbelt("support", { description: "Tools the support agent may call", tools: ["slack_add_bookmark", "github_create_issue"],});// belt.reference → "support-…@1"