This repository has been archived on 2026-04-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
core/packages/js-sandbox/manifest.json
Jeffrey Smith c65674965f
Some checks failed
CI/CD / detect-changes (pull_request) Successful in 4s
CI/CD / test-frontend (pull_request) Successful in 5s
CI/CD / test-go-pg (pull_request) Failing after 2m26s
CI/CD / test-sqlite (pull_request) Successful in 2m41s
CI/CD / build-and-deploy (pull_request) Has been skipped
Feat v0.2.9 builtin extension retirement
Stop auto-seeding 6 chat-centric extensions on startup. Move them to
standard packages with js/ layout and "requires": ["chat"] metadata.
Delete SeedBuiltinPackages, seed tests, Dockerfile COPY, and
extensions/builtin/ directory.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 16:45:45 +00:00

31 lines
1.3 KiB
JSON

{
"id": "js-sandbox",
"name": "JavaScript Sandbox",
"version": "1.0.0",
"type": "extension",
"tier": "browser",
"author": "switchboard",
"description": "Executes JavaScript in a sandboxed iframe. Allows the LLM to run code, verify calculations, and transform data — no server compute required.",
"requires": ["chat"],
"permissions": [],
"tools": [
{
"name": "js_eval",
"display_name": "JavaScript Eval",
"description": "Execute JavaScript code in a secure browser sandbox. Use this to: verify calculations, run algorithms, transform data, test code snippets, parse/format strings, or any computation. Console output (log/warn/error) is captured. The last expression's value is returned as the result. Has no network access, no DOM access, no access to the parent page. Timeout: 10 seconds.",
"parameters": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "JavaScript code to execute. Use console.log() for output. The value of the last expression is returned automatically."
}
},
"required": ["code"]
}
}
],
"surfaces": [],
"settings": {}
}