Remove Script
remove_scriptDelete a specific pre-request, post-response, or tests script from a Bruno request while keeping the rest of the request intact; removing all scripts drops the empty script container.
Instructions
Delete a pre-request, post-response, or tests script from a Bruno request, leaving the rest of the request intact, including duplicate blocks accumulated by appending. Canonical scriptType values are pre-request/post-response/tests; the aliases before-request and after-response are accepted. Removing all scripts also drops the now-empty script container.
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": {
"bruFilePath": "<bruFilePath>",
"scriptType": "<scriptType>"
},
"name": "remove_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scriptType | Yes | Which script to remove. Both .bru and .yml keep the three script types in separate slots, so removal is precise: clearing tests leaves a post-response script in place, and vice versa. | |
| bruFilePath | Yes | Absolute path to the .yml or .bru request file. Get from list_requests or get_collection_stats. |