← 返回
未分类 中文

ACT Runtime

Run ACT WebAssembly component tools via `act call`. Use when the user asks to use an ACT component, run a .wasm tool, or needs sandboxed tools (SQLite, HTTP,...
通过 `act call` 运行 ACT WebAssembly 组件工具。在用户请求使用 ACT 组件、运行 .wasm 工具或需要沙箱工具(如 SQLite、HTTP 等)时使用。
actcore
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 319
下载
💾 0
安装
1
版本
#latest

概述

ACT Tools

Run self-contained WebAssembly component tools via the act CLI. No system dependencies, no Docker, no language runtimes — just .wasm binaries in a sandbox.

Prerequisites

Check if act is available:

act --help

If not installed:

npm i -g @actcore/act

Step 1: Discover tools

act info --tools --format json <component>

is one of:

  • OCI registry ref: ghcr.io/actpkg/sqlite:0.1.0
  • HTTP URL: https://example.com/component.wasm
  • Local file: ./component.wasm

The output contains:

  • metadata_schema — required configuration keys (pass via --metadata)
  • tools — list of tool names, descriptions, and parameters_schema

Use --format text for a human-readable summary instead of JSON.

Step 2: Call a tool

act call <component> <tool-name> --args '<json>' [options]
OptionPurpose
-----------------
--args ''Tool parameters (matches parameters_schema)
--metadata ''Component config (matches metadata_schema)
--allow-dir guest:hostGrant directory access to the sandbox
--allow-fsGrant full filesystem access

Output is JSON on stdout. Logs go to stderr.

Remote components are cached locally after first download.

Example: SQLite

# Create a table
act call ghcr.io/actpkg/sqlite:0.1.0 execute-batch \
  --args '{"sql":"CREATE TABLE notes (id INTEGER PRIMARY KEY, text TEXT, created_at TEXT DEFAULT CURRENT_TIMESTAMP)"}' \
  --metadata '{"database_path":"/data/notes.db"}' \
  --allow-dir /data:/tmp/act-data

# Insert
act call ghcr.io/actpkg/sqlite:0.1.0 execute \
  --args '{"sql":"INSERT INTO notes (text) VALUES (?1)","params":["Hello from ACT"]}' \
  --metadata '{"database_path":"/data/notes.db"}' \
  --allow-dir /data:/tmp/act-data

# Query
act call ghcr.io/actpkg/sqlite:0.1.0 query \
  --args '{"sql":"SELECT * FROM notes"}' \
  --metadata '{"database_path":"/data/notes.db"}' \
  --allow-dir /data:/tmp/act-data

Important

  • Always run act info --tools first to discover tool names and schemas
  • Pass --metadata on every call (stateless — no session)
  • Use --allow-dir guest:host only when the component needs filesystem access
  • Components run sandboxed in WebAssembly — no host access unless explicitly granted

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-07 08:36 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 882 📥 357,763
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,546 📥 592,825
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,189 📥 959,577