wasm-agent

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

WASM Agent

WASM Agent

Create sandboxed agents that run in WebAssembly for safe, isolated execution.
创建在WebAssembly中运行的沙箱化Agent,以实现安全、隔离的执行。

When to use

使用场景

When you need to run untrusted code, experiment with agent configurations, or create portable agents that run anywhere WASM is supported.
当您需要运行不受信任的代码、试验Agent配置,或者创建可在任何支持WASM的环境中运行的可移植Agent时。

Steps

操作步骤

  1. Create agent — call
    mcp__claude-flow__wasm_agent_create
    with agent configuration
  2. Send prompt — call
    mcp__claude-flow__wasm_agent_prompt
    to interact with the agent
  3. Use tools — call
    mcp__claude-flow__wasm_agent_tool
    to give the agent access to specific tools
  4. Manage files — call
    mcp__claude-flow__wasm_agent_files
    to read/write files in the sandbox
  5. Export — call
    mcp__claude-flow__wasm_agent_export
    to package the agent for sharing
  6. List agents — call
    mcp__claude-flow__wasm_agent_list
    to see all running WASM agents
  7. Terminate — call
    mcp__claude-flow__wasm_agent_terminate
    to stop an agent
  1. 创建Agent — 调用
    mcp__claude-flow__wasm_agent_create
    并传入Agent配置
  2. 发送提示词 — 调用
    mcp__claude-flow__wasm_agent_prompt
    与Agent交互
  3. 使用工具 — 调用
    mcp__claude-flow__wasm_agent_tool
    为Agent提供特定工具的访问权限
  4. 管理文件 — 调用
    mcp__claude-flow__wasm_agent_files
    在沙箱中读写文件
  5. 导出 — 调用
    mcp__claude-flow__wasm_agent_export
    打包Agent以便共享
  6. 列出Agent — 调用
    mcp__claude-flow__wasm_agent_list
    查看所有运行中的WASM Agent
  7. 终止 — 调用
    mcp__claude-flow__wasm_agent_terminate
    停止Agent

Benefits

优势

  • Full sandbox isolation — agents cannot access the host filesystem
  • Portable — export and run on any WASM runtime
  • Reproducible — same behavior across platforms
  • Safe — no risk of system damage from agent actions
  • 完整的沙箱隔离 — Agent无法访问主机文件系统
  • 可移植性 — 导出后可在任何WASM运行时环境中运行
  • 可复现性 — 在不同平台上表现一致
  • 安全性 — Agent操作不会对系统造成损坏风险