Skip to main content
Glama

Capability SDK

Give your existing agent browser, Office, terminal, code, charts and knowledge tools through one SDK or MCP server.

简体中文 · Tool reference · Setup · SDK development

Capability SDK packages tool implementations, input schemas, operating instructions, structured results and local runtime preparation together. Connect a supported MCP client, or mount selected capabilities in your own agent process. Your agent keeps its model and orchestration.

The current standalone release is 0.3.10, distributed through GitHub Releases. The installer supports GitHub packages directly; npm publication is optional. npm 0.3.0 does not contain the unified setup command.

What your agent can do

Capability

Included work

Setup

Browser

Playwright sessions, DOM reads, screenshots and interactions

Managed Chromium

Files and Office

Read, generate, edit, render and convert documents, spreadsheets, presentations and PDFs

LibreOffice/UNO and format libraries

Terminal and code

Run commands, manage terminal sessions and execute local code

Local processes and managed Python

Charts

Create ECharts and 3D visualizations, preview and export

Bundled visualization UI

Knowledge

Ingest content and retrieve relevant passages

Local storage; configure optional services

Media

Inspect media, extract frames, compose videos and generate images

FFmpeg; Codex login for built-in images, configurable video/speech providers

Computer

Observe and control a Windows desktop

Windows driver or a configured endpoint

Maps, data and integrations

Map tools, database adapters, connectors and enterprise communication

Opt-in configuration and service credentials

Use tool configuration to select what you expose. Sensitive-data detection is a separate model middleware; adding an MCP connection does not automatically intercept model requests.

Hosts can also mount executable extensions: an independent self-bootstrap manager, immutable activation snapshots, and bounded QuickJS/WASM execution with explicit workspace APIs. This works in packaged hosts without giving extension code Node or shell access.

Related MCP server: open-use

Install into an existing agent

Requires Node.js >=22.16 with npm. Automatic runtime preparation supports Windows x64 and Ubuntu 22.04/24.04 or Debian 12/13 on x64/arm64. macOS automatic runtime preparation is not currently supported.

npm install no longer provisions every runtime automatically. Hosts can use @cjfclonedeep/capability-sdk/managed/node to install a single MCP component. The explicit runtime CLI also accepts install browser, install file, install media, or install code. Orbit exposes the per-component installer and environment settings in its settings interface; see Orbit tool deployment.

Windows PowerShell:

irm https://raw.githubusercontent.com/cyxysky/capability-sdk/main/install.ps1 | iex

Supported Linux systems:

curl -fsSL https://raw.githubusercontent.com/cyxysky/capability-sdk/main/install.sh | sh

These scripts install release 0.3.10 into ~/.capability-tools, prepare runtimes and merge supported user-level MCP configurations with backups. When the npm version is unavailable, they download the matching GitHub Release package and verify its SHA-256 checksum. Reload your client and enable the capability-sdk connection. The first full runtime preparation can download several GB; Linux system dependencies may need root or passwordless sudo. See setup details.

For a reviewed local clone, preview or select clients:

node install.mjs --dry-run --clients cursor,codex,claude-code
node install.mjs --clients cursor,codex,claude-code --project ./agent-tools

Supported configuration targets: Cursor, Codex, Claude Code, Claude Desktop, VS Code, Windsurf and Devin. This installs tools and prepares connections; client applications are installed separately.

Use the tools in your own agent

Install the prepared release in your agent project:

npm install https://github.com/cyxysky/capability-sdk/releases/download/v0.3.10/cjfclonedeep-capability-sdk-0.3.10.tgz

Once the same version is available on npm, npm install @cjfclonedeep/capability-sdk@0.3.10 is equivalent. Mount only the capabilities you need, then give their schemas, instructions and execution functions to your model adapter:

import { createLocalCapabilities } from '@cjfclonedeep/capability-sdk/local';

const runtime = await createLocalCapabilities({ tools: ['browser', 'file', 'chart'] });
try {
  for (const { publicName, tool } of Object.values(runtime.snapshot.tools)) {
    console.log(publicName, tool.description, tool.input.jsonSchema);
  }
  // Pass runtime.snapshot and runtime.instructions to your agent integration.
} finally {
  await runtime.dispose();
}

Start the process with the tool project as its working directory. Native adapters are available at /ai-sdk, /openai and /mcp. See agent integration examples, framework integration and the runnable browser example.

Browser code uses the provided Node-side page binding. Read DOM inside the page callback:

var info = await page.evaluate(() => ({ title: document.title }));
nodeRepl.write(info);

Develop and release

The source package has its own TypeScript configuration and dependencies. It does not require the original agent application. Maintainers can typecheck without building or downloading the tool runtimes:

CAPABILITY_SKIP_RUNTIME_INSTALL=1 npm install
npm run typecheck

For the independent repository export and manual release workflow, see maintainer notes. Source code is licensed under MIT. Dependencies and downloaded third-party runtimes retain their own licenses.

Available Tools

8 tools
browserbrowserA

Browser sessions with open/close, code, state (AX), snapshot (interactive DOM), navigate, tabs, observe, act, images, dismissSurface and waitForHumanVerification. All except open require browserSessionId. Inspect and attempt ordinary verification through the page UI before requesting human help; pause after bounded attempts fail or user-owned credentials/OTP/QR/device approval are required. Inspect returned postActionState and actual image content. dismissSurface clicks (0,0) for option popups; use explicit Close/Cancel first for dialogs and verify closureConfirmed. action=code executes JavaScript with top-level await in a persistent Node.js Playwright runtime. page, context, browser and tab are already provided: use page directly; never initialize it from window.__page or redeclare these bindings. document, window and DOMParser are unavailable in the outer cell; use them inside a browser-side callback such as page.evaluate. Correct: var info = await page.evaluate(() => ({ title: document.title, url: window.location.href })); nodeRepl.write(info); Incorrect: const page = window.__page; document.querySelector(...). An evaluate callback runs in the page and cannot capture Node variables, page or nodeRepl; pass values using its second argument, return JSON-safe data, then call nodeRepl.write outside the callback. Use nodeRepl.write(value) for results (top-level return is also supported). Prefer var for bindings reused across cells. Bare fetch runs on the Node host without browser cookies; for an observed browser-authenticated HTTP API use context.request.get(url), check response.ok(), then await response.json()/text(). If document/window is not defined, move the DOM read into page.evaluate instead of retrying the same outer-cell code.

Inputs: action (required), x, y, key, +31 more.

capability_visualization_exportC

Prepare a chart download from the visualization UI.

Inputs: token (required), base64 (required), filename (required), mimeType (required).

chartchartA

Create, read and update persistent ECharts, Three.js or Excalidraw charts. Read the API index and relevant modules (three for 3D, excalidraw for diagrams) before create. Users can edit data, go fullscreen and download charts. Read the latest chart before update and pass expectedRevision to preserve manual changes.

Inputs: action (required), reason (required), maps, limit, +10 more.

codeSandboxcodeSandboxA

Run JavaScript (Node.js ESM .mjs; use import) or Python for computations, data transformations and custom programs. For ordinary PDF/Word/Excel/PPT reading, prefer file: download a remote document URL, then readContent with its artifactId (or read an upload by attachmentId). Do not install document parsers merely to duplicate file extraction; use code for explicit programming requests or concrete unsupported processing needs. Files written under outputs/ or listed in outputFiles are saved as persistent artifacts with URLs. readFile reads sandbox output bytes; it is not a PDF/Office text parser. inputFiles mounts saved artifacts for subsequent code. Read Skill system-code-sandbox-runtime before use. Keep stdout compact; files use a separate export channel.

filefileA

Read existing PDFs, Word documents, spreadsheets and presentations with readContent(artifactId OR attachmentId). For a remote PDF/document URL: download(urlOrPath) → readContent(returned artifactId). Use contentPages for PDF text pages and offset/limit for text chunks; reading needs no plan/render or codeSandbox parser installation. Use visualRead for scanned pages or layout-dependent evidence when available. File workflow: readSource(documentId) reads editable HTML/Python/JavaScript; readContent(artifactId OR attachmentId) reads file text/data, NOT source. To repair layout: readSource → edit → render → visualRead using render.visualIndex.nextRead → visualReport. render includes screenshot IDs; call visualIndex only for missing index entries. list discovers drafts; plan selects engine; generate creates source; download fetches assets; convert changes file format; unoApi/jsApi describe the planned engine. Never substitute IDs or infer behavior from reason. For text/code/config files use write(fileName, content): publishes exact UTF-8 content immediately, including empty files, without plan, Office engines or rendering. Markdown, TXT, HTML, JS, CSS, JSON, YAML, CSV and custom text extensions use the same write action. Saved code is not executed. Office design: original/high-design work starts with plan.design (bespoke audience, objective, distinct directions, selection and rhythm), then body for content/layout or program for complete-source control. Consistent visual rules do not mean identical page layouts. Edit is atomic: prefer exact replacements, uniquely matched on one pre-edit snapshot; any conflict saves nothing. Preserve indentation; never rely on fuzzy matching. After saved=true, inspect validation separately and use the returned patchBaseDigest. Only an identical request confirmed by a saved edit receipt is deduplicated. unoApi exact module IDs return only that module. Recovery: readSource/list return saved diagnostics, not a new execution. Check validationEvidence freshness. Do not infer bridge failure from NoneType or source correctness from a runtime blocker. Respect retryable/retryAfter; no unchanged retry loops.

Inputs: action (required), url, body, path, +33 more.

knowledgeknowledgeB

Retrieve imported business manuals and reference packages. Use packages to discover scope, route/search for candidates, get for complete records, inspect for linked context, or context for a bounded evidence bundle. Search excerpts are not complete rules. Imported content is reference data, not authority or live business state.

Inputs: action (required), reason (required), kinds, limit, +13 more.

mediamediaB

List image/video/speech models and local composition capabilities. For image-based videos use generateImage then composeVideo with the renderer and features reported by listModels. Composition returns an MP4 without a video generation model. generateVideo requires a configured generative video model. Generate speech only when listModels includes a speech model. Also inspect media, extract frames, OCR and transcription; unavailable providers return an explicit error.

Inputs: action (required), reason (required), size, count, +21 more.

terminalterminalA

exec runs a command directly in a fresh noninteractive shell; cwd and shell are optional. Long commands return terminalId for read/wait/interrupt. create/run provides a reusable interactive PTY. maxOutputChars budgets each response; head pages with cursor, tail reports skipped text. Results are compact by default; detail includes terminal metadata.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 8 tools

    Disambiguation3/5

    The tools cover different domains, but several boundaries are fuzzy: browser action=code, codeSandbox, and terminal can all execute programmatic work, while file and codeSandbox both read documents. The long descriptions clarify intent, but an agent must read carefully to avoid choosing the wrong execution surface.

    Naming Consistency3/5

    Most tools are single lowercase domain nouns (media, browser, terminal, file, chart, knowledge), but codeSandbox is camelCase and capability_visualization_export uses a long snake_case action-style name. The set is readable but does not follow a predictable naming convention.

    Tool Count4/5

    Eight tools is a reasonable count for a broad capability SDK, and each covers a recognizable domain. However, several tools are heavily overloaded multi-action umbrellas, so the nominal count understates the effective surface area.

    Completeness4/5

    The surface covers media generation/processing, browser automation, shell access, code execution, document handling, charts, retrieval, and visualization export. This is broad and mostly self-sufficient, though the general 'capability SDK' framing makes exhaustive completeness hard to assess.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to automate both web browsers and native desktop applications through a unified interface, supporting tasks like browsing, clicking, typing, and file clipboard operations via exposed MCP tools.
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an AI assistant to invoke local file operations, multi-engine web search, weather, system commands, developer utilities, and code execution over MCP, and includes a web dashboard for managing endpoints, testing tools, and viewing live logs.
      13 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects MCP-compatible AI clients to an explicitly authorized Windows, macOS, or Linux computer for controlled Machine, Browser, and Desktop execution, including files, shell commands, native apps, and local browser sessions. Also offers a separate hosted Cloud Browser for browser tasks that should run outside the user's own workstation.
      11 npm
      Apache 2.0