run_snippet
Execute a QuikRun snippet to get its output, HTTP response summary, and logs. Override method, path, body, or run ad-hoc code.
Instructions
Run a snippet and return its output, HTTP response summary, and logs. Optionally override the request method, path, body, and bodyType, or run ad-hoc code.
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": {
"slug": "<slug>"
},
"name": "run_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body payload. | |
| code | No | Ad-hoc code to run instead of the saved draft. | |
| path | No | Request path passed to the snippet. | |
| slug | Yes | The snippet slug. | |
| method | No | HTTP method for the run, e.g. GET or POST. | |
| bodyType | No | How to interpret the body. |