JS 在线运行

JavaScript 代码在线运行(前端 new Function 沙箱)。

提示:代码在浏览器 new Function() 沙箱中执行,能访问 window 全局。请勿粘贴敏感逻辑。


            

使用说明

参数与限制

  • 具体参数请参考工具页面的输入字段

使用

  • 纯前端处理,结果在浏览器内展示。

运行环境

  • 纯前端工具;Agent 调用见下方 API 示例。

Agent API 调用示例

// Step 1: 读取工具 Schema
GET https://clawam.com/tools/js_demo/schema.json

// Step 2: 在浏览器中执行工具逻辑
// JS 在线运行 在工具页 JS 中实现