← 返回
效率工具 中文

XPR Code Sandbox

Execute JavaScript code in a secure sandbox for data processing, computation, and quick expression evaluation without network or filesystem access.
在安全的沙箱中执行 JavaScript 代码,用于数据处理、计算和快速表达式评估,且无网络或文件系统访问。
paulgnz
效率工具 clawhub v0.2.11 1 版本 99923.1 Key: 无需
★ 0
Stars
📥 1,300
下载
💾 32
安装
1
版本
#code#javascript#latest#sandbox#xpr

概述

Code Sandbox

You have sandboxed JavaScript execution tools for computation and data processing:

Full scripts:

  • execute_js — run JavaScript code in an isolated V8 sandbox
  • Pass data via the input parameter (JSON) — access it as INPUT in your code
  • Use console.log() to capture intermediate values (returned in logs array)
  • Available globals: JSON, Math, Date, Array, Object, String, Number, RegExp, Map, Set, parseInt, parseFloat, isNaN, isFinite, encodeURIComponent, decodeURIComponent, atob, btoa
  • No network access, no filesystem, no imports — pure computation only
  • Default timeout 5 seconds, max 30 seconds
  • 10MB output limit

Quick expressions:

  • eval_expression — evaluate a single JavaScript expression and return the result
  • Use for quick math: "15 4500 0.01"675
  • Date calculations: "new Date().toISOString()"
  • Array operations: "[1,2,3].map(x => x*x)"[1, 4, 9]

Best practices:

  • Use execute_js for multi-step data processing, algorithm testing, code validation
  • Use eval_expression for quick math, string ops, date calculations
  • Pass large datasets via input parameter rather than embedding in code
  • Combine with parse_csv (structured-data skill) for CSV → transform → output workflows
  • Combine with store_deliverable to save computed results as job evidence

版本历史

共 1 个版本

  • v0.2.11 当前
    2026-03-29 03:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,659
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,845
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,300