debug_function
Run JavaScript functions in debug mode to view execution results and console logs without deploying. Validate storefront code before publishing.
Instructions
Run JS code in debug mode (without deploying). Returns execution result and console logs
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": {
"content": "<content>",
"function_name": "<function_name>"
},
"name": "debug_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Test parameters | |
| content | Yes | JS code to debug | |
| function_name | Yes | Function name to run |