Official capabilities

Use the ViteHub capability catalog by agent ability, not by package boundary.

Official Capabilities are imported from @vite-hub/agent/capabilities.

import {
  access,
  blob,
  chat,
  db,
  kv,
  llmGate,
  llmRoute,
  mcp,
  sandbox,
  transcribe,
  webSearch,
  workspaceShell,
} from '@vite-hub/agent/capabilities'

Catalog

AbilityCapabilityUse it when
Chat behaviorchat()A chat surface should start Agent Invocations and manage Chat History.
Workspace filesworkspaceShell()The model should inspect or edit Workspace files.
Storagekv(), blob(), db()The model needs scoped access to configured storage primitives.
Isolated executionsandbox()The model should run explicit commands in an isolated runtime.
Access scopeaccess()Invocation identity should narrow Workspace Scope before tools are exposed.
Web contextwebSearch()The model needs web search or URL reading.
MCP serversmcp()The Agent should consume external MCP tools.
Audio inputtranscribe()Audio message parts should become transcript text before the Agent runs.
Routing and gatesllmRoute(), llmGate()A pre-invocation model decision should select a route or reject input.

Storage capabilities

Storage Capabilities are intentionally small. KV and Blob expose read/edit surfaces instead of every primitive method. Database exposes database-native schema, query, and execute tools with guardrails.

Writes require approval by default unless the developer opts into autonomous behavior.

Execution capabilities

Sandbox and Workspace Shell are different.

Workspace Shell exposes shell-shaped Workspace inspection and optional structured Workspace mutation tools. Sandbox runs configured commands in an isolated runtime.

Without an execution Capability, an Agent cannot execute programs.

Routing and gates

llmRoute() and llmGate() produce typed Pre-Invocation Decisions. They do not dynamically attach new Capabilities or mutate the Agent Definition.

Use them to record a decision, reject a request, or let later callbacks read a typed context value.

Copyright © 2026