Execute Slack API code
executeRun JavaScript in a network-isolated V8 isolate to chain Slack Web API calls and app lookups, returning values; credentials are brokered by the host.
Instructions
Run JavaScript inside a network-isolated celld V8 isolate. Prefer app.* for lookups, DMs, posts, threads, links, files, and canvases; slack exposes the allowlisted Web API. Return a value to get it back; console output is included.
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": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript body. Use `return` for the value you want back. | |
| timeout_ms | No | Execution limit in milliseconds (default 30000). |