Back to Registry View Author Profile
Official Verified
code-sandbox
Execute JavaScript code in a sandboxed VM for data processing and computation
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/paulgnz/xpr-code-sandboxOr
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
inputparameter (JSON) — access it asINPUTin your code - Use
console.log()to capture intermediate values (returned inlogsarray) - 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
- Pass data via the
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]
- Use for quick math:
Best practices:
- Use
execute_jsfor multi-step data processing, algorithm testing, code validation - Use
eval_expressionfor quick math, string ops, date calculations - Pass large datasets via
inputparameter rather than embedding in code - Combine with
parse_csv(structured-data skill) for CSV → transform → output workflows - Combine with
store_deliverableto save computed results as job evidence
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-paulgnz-xpr-code-sandbox": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.
Related Skills
web-scraping
Web scraping tools for fetching and extracting data from web pages
paulgnz 1217
governance
XPR Network governance — communities, proposals, voting on the gov contract
paulgnz 1217
lending
LOAN Protocol lending and borrowing on XPR Network (lending.loan contract)
paulgnz 1217
nft
Full AtomicAssets/AtomicMarket NFT lifecycle on XPR Network
paulgnz 1217
xpr-agent-operator
Operate an autonomous AI agent on XPR Network's trustless registry
paulgnz 1217