node
Execute JavaScript code and process JSON using Node.js locally. Ideal for quick calculations and data transformations.
Instructions
在本地 Node.js 中执行单段代码(node -e)。适合 JavaScript 计算、JSON 处理。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 要执行的 JavaScript 代码 | |
| timeout | No | 超时秒数(可选,默认 60) |