Cloud Function API Overview
If you want to use a published OOMOL function from Codex, Claude Code, or a regular terminal session, start with the CLI guide. This page covers the lower-level programmatic integration layer.
OOMOL Cloud Function currently exposes its task execution layer through the Cloud Task v3 endpoints and SDKs. In the product UI and docs, Cloud Function is the feature name; Cloud Task is the current API and package naming used for direct integrations.
This API lets you submit serverless block runs, poll for status, fetch results, manage your queue, and upload input files.
What You Can Build
- Trigger a published block from your own application
- Poll long-running jobs until they finish
- Upload files before task creation and pass the returned URL into
inputValues - Pause or resume the current user's queue
- Expose Cloud Task as MCP tools for AI agents
Current Scope
The current SDKs in this repo target Cloud Task API v3 and focus on one workload type:
serverless
Task creation always targets:
packageNamepackageVersionblockName- optional
inputValues
Choose The Right Integration
| Option | Best for | Install |
|---|---|---|
| CLI | Codex, Claude Code, terminal usage, and individual users who want the simplest path | bun install -g @oomol-lab/oo-cli |
| TypeScript / JavaScript SDK | Web apps, Node.js services, browser-side integrations | npm install oomol-cloud-task-sdk |
| Python SDK | Python backends, scripts, data tooling | pip install oomol-cloud-task-sdk |
| MCP SDK | MCP Server wrappers for AI tools and agents | npm install oomol-cloud-mcp-sdk |
| HTTP with curl | Minimal integrations, debugging, non-SDK environments | No SDK required |
Authentication
Cloud Task v3 supports two authentication modes:
- Bearer Token: pass an API key to the SDK, or send
Authorization: Bearer <apiKey> - Cookie: keep the
oomol-tokencookie attached to requests
Core Workflow
- Create a task.
- Store the returned
taskID. - Poll the task result until it reaches
successorfailed. - Read
resultURLorresultDatawhen the task succeeds.
Common Task States
- In progress:
queued,scheduling,scheduled,running - Final:
success,failed