Skip to main content
Glama

Run Collection

run_collection

Execute requests from a Bruno collection and run their test scripts, optionally in isolated parallel groups with separate variables and cookies so one collection can run as multiple identities.

Instructions

Execute requests in a Bruno collection and run their test scripts. SUBSET: requests is an ORDERED list of .yml/.bru paths, absolute or relative to collectionPath; a directory expands recursively. Duplicates allowed, and run twice. Omit to run the whole collection. Pass requests OR groups, never both. GROUPS: one call, more than one identity or configuration. Each group owns its OWN variable store and cookie jar, so nothing a group sets — a bru.setVar, a session cookie — is visible to any other group. That is what makes running the same five requests as alice and as bob in one call safe. ITERATIONS: data or dataFile runs a group once per row, the row bound as variables. Each row is its own group — same name, own index, own iterationIndex — with that same isolation. Rows are independent: a failing row does not stop later rows. Ceiling 1000 rows per scope. PARALLELISM: parallel on the run fans groups out; parallel on a group fans that group's requests out. A group is serial unless it says otherwise, whatever the run does. seq no longer constrains execution — default order and reporting order only — so two requests in one parallel group run at the same moment and may contend on the store they share. startAfter holds a group until a named group has completed a given number of its requests, connecting a listener before a trigger fires; needs parallel on the run. Chains allowed; cycles, and gates that can never open, are refused before anything runs. If the group waited on ends early, the waiting group reports that as its error instead of starting. RESULTS are group-shaped: each groups[] entry carries its own summary, results, capturedVariableNames and capturedVariables; the top-level summary is the run. Run-wide warnings are top-level, so a captureVariables name is reported unset only when NO group set it. There is no top-level results array, not even with no groups. A crashed group reports error and counts as one failure. RESPONSE DATA: every result carries the response body (response_body, response_content_type, response_body_truncated) unless includeResponseBody is false; maxResponseBodyBytes caps it. Every result also carries response_headers, no test script needed; includeResponseHeaders false omits them, maxResponseHeaderBytes bounds one value, and includeResponseBody false bounds the body only, never the headers: credential-named values are masked, and set-cookie is a LIST — one entry per cookie — whose entries keep every attribute (HttpOnly, Secure, SameSite, Path, Max-Age) and withhold only the cookie value, so a cookie-flag or HSTS check is one call. A websocket result's response_headers hold its handshake response (the 101), the only place a session cookie or a negotiated sec-websocket-protocol is visible for that transport; a gRPC result reports metadata under grpc instead. ORDER: within a group, the order given; a directory expands by seq scoped to its own folder, subfolders before that folder's loose requests, ties by filename. An unparseable file is skipped when DISCOVERED (whole collection, or directory expansion): parseErrors counts them, parseFailures names each with its reason. A file you NAMED is not skipped: it fails the group that named it, reported as that group's error, and other groups still run. A named request that does not exist goes to that group's missingRequests and fails nothing. TRANSPORTS: http, graphql, grpc, websocket. Any other kind is refused per-request with status 0 and a named reason, leaving the rest of the group alone. A gRPC result carries grpc: status code (0 is OK and is NOT the refusal sentinel — status 0 with an error and no grpc detail is a refusal), method, redacted metadata. A websocket result carries websocket: transcript, stop_reason (count, timeout, bytes, closed, error) and truncated, true for the three that cut a session short. Frame contents are recorded only when websocket.includePayloads is on. ASSERTING ON A TRANSPORT: on a websocket result res.getBody() IS the transcript array and res.getStatus() is ALWAYS 0 — a session has no status, so a test on it asserts a constant and cannot fail. The outcome is res.getStopReason() (also res.stopReason and res.statusText, same string), res.getCloseCode() for the peer's close code (null when it sent none, ordinary for a session stopped by its own bound), and res.getSessionTruncated(). Each returns what that result's websocket detail reports. On a gRPC result res.getStatus() is the gRPC code, res.statusText the server details or code name, res.getBody() the parsed message. SIMULTANEITY IS PER CALL: groups plus parallel are the only way to make two things happen at the same moment. Two separate calls are not serialised by this server, and nothing here decides when the second starts: that is the client's scheduling, typically seconds apart. One identity listening while another triggers must be ONE call with parallel groups. Every result carries the path of the request file it came from. STOPPING EARLY: bail stops the run at the first request that fails or whose tests fail. Everything after comes back skipped: true, skipReason "bail", counted in summary.skipped and in neither passed nor failed; the run carries a bail object naming the reason, the request it stopped at and how many were skipped. Nothing cancels a request in flight, so under parallel the ones already started still finish and are reported normally. REPORT FILES: report also writes the run to disk — JUnit XML for CI, HTML for a person — at a path inside the collection; what was written comes back under reports. Outbound requests are SSRF-filtered: targets resolving to private, loopback, link-local or otherwise reserved addresses are refused unless the server operator has allowlisted them, and a refusal is reported per-request as an "SSRF blocked" error with status 0.

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": {
      "collectionPath": "<collectionPath>"
    },
    "name": "run_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
bailNoStop at the first request that errors or fails a test, instead of running the rest. Bruno's --bail. Requests not yet started come back as results with skipped:true, in the failing group and every group after it. Requests already in flight are NOT cancelled, so under parallel this skips the tail rather than the remainder, and the run warns that it did. A skipped request counts in summary.skipped and in neither passed nor failed. The result's bail field says where the run stopped. Default: false.
dataNoRows every group iterates over, as the group-level data but applied to all of them. A group that gives its own data or dataFile REPLACES this rather than adding to it, the same rule environment follows. With no groups given, the run is one group and these rows are its iterations. Mutually exclusive with dataFile.
groupsNoRun the same collection under more than one identity or configuration in one call. Each group owns its OWN variable store and cookie jar: nothing a group sets is visible to any other group, in either direction, at any parallel setting. Groups are reported in the order given. The same request may appear in several groups. Cannot be combined with requests; omit both to run the whole collection as one group.
reportNoWrite the run to a file as well as returning it here. Name at least one format. Paths are CONFINED TO THE COLLECTION: a path resolving outside it is refused, with the reason as a run warning, because writing wherever a caller points is a far bigger authorization than running its requests. Missing parent directories inside the collection are created, and an existing report is overwritten. Each file written is reported under reports with its absolute path and size; a report that could not be written never fails the run, it adds a warning naming the format and the reason. A report holds what the results hold — response bodies included, response headers masked exactly as they are here — so it lands on disk with whatever the run saw.
dataFileNoA CSV inside the collection whose rows every group iterates over. Same rules as the group-level dataFile, and likewise replaced by a group that names its own rows. Ceiling of 1000 rows, because every row runs every request in the group and a spreadsheet passed by mistake is an outbound request storm; slice the file and run it in parts.
parallelNoFan out. At the run level this runs the GROUPS concurrently; a group's own requests are serial unless that group sets its own parallel. With no groups given the run is one group, so parallel here runs every selected request concurrently. Reporting order is the listed order regardless. Default: false.
requestsNoThe requests to run, IN THE ORDER GIVEN. Each entry is a .yml or .bru request file, or a directory, which expands to every request under it, recursively. Absolute, or relative to collectionPath. Get paths from list_requests or get_collection_stats. Duplicates are allowed and run twice. Omit to run every request in the collection; an empty [] is a selection of nothing and runs nothing. Cannot be combined with groups; to run a subset per identity, put the paths in each group's own requests. An entry naming nothing is reported in missingRequests rather than failing the run.
cookieJarNoKeep cookies from each response and send them on later requests in the same run, so a login carries into the requests after it. Scoped to the group — nothing crosses from one group to another, at any parallel setting — held in memory, never written to disk, and matched by host/path/expiry, so a cookie set by one host is not sent to another. Precedence, per cookie name: a Cookie header the request writes itself WINS over the jar, which only adds names the request did not set. This diverges from Bruno's CLI, where the stored value wins the clash; a warning names any cookie whose stored value was dropped. Default: true. Set false to send only the Cookie headers a request writes itself.
variablesNoVariables for this run only, as {name: value}. They override the environment file and work without one. Held in memory and never written to any file — this is the only correct way to supply a secret, because neither Bruno file format stores a secret value. Referenced as {{name}} in urls, headers, bodies and auth. A request-level vars:pre-request entry or a bru.setVar in a script still overrides these, matching Bruno's --env-var precedence.
websocketNoBounds for every websocket request in this call; there is no per-request form. Omit for the defaults below. A session always ends on one of these bounds or on the peer closing, and nothing is held open past the call. Each transcript entry carries its frame type ("text", "binary", "ping", "pong" or "close"), the authored title of a message the session sent, and on a close frame the close_code the peer gave — 1000 an ordinary goodbye, 1006 a peer that vanished, 1008 a refusal, 1011 a server error. Control frames do not count toward maxMessages. A binary frame's payload is base64; bytes is the true wire size for every kind. A subprotocol is not a bound and is not set here: author it as a Sec-WebSocket-Protocol header on the request, comma-separated for more than one. It is negotiated at the handshake, and the one the server agreed to comes back in that result's response_headers.
environmentNoEnvironment name to use (e.g. "dev", "staging"). Get available names from get_collection_stats.
collectionPathYesAbsolute path to collection root directory. Use the path returned by list_collections.
collectionRootNoThe collection that collectionPath belongs to, when running a subfolder of one: environments and the collection- and folder-level scripts are resolved from here. Must be collectionPath itself or an ancestor of it — a root that does not contain the collection is rejected.
maxConcurrencyNoCeiling on requests in flight across the whole run. Omit to derive one from this machine's cores and memory, held below capacity. 0 lifts it entirely, at your own risk. Applies to THIS run and is given back when it ends, so it neither re-caps another run already in flight nor outlives the call that asked for it. A ceiling below the number of requests you meant to run at once silently serialises them.
captureVariablesNoNames of variables set by bru.setVar during the run whose values you want back, e.g. ["token"]. This is the only way to see one: without it the value exists only inside the run. Every name a script set is listed in capturedVariableNames on every run, so run once to see what is there. Values come back only for names you list here, verbatim. Nothing is captured from the environment file or from variables you supplied, only what a script set.
includeResponseBodyNoInclude the response body of each request in the results. Default: true.
maxResponseBodyBytesNoMaximum response body size (bytes) to return per request; longer bodies are truncated and response_body_truncated is set. Default: 10240.
includeResponseHeadersNoInclude the response headers of each request in the results, credential values masked. Default: true. Turn it OFF for a run whose results you read in bulk: the same headers repeat per result and a few dozen requests can spend more output on them than on what you asked about. A test script is unaffected: res.getHeader() always reads the real headers.
maxResponseHeaderBytesNoMaximum size (bytes) of one header VALUE to return; a longer value is cut and response_headers_truncated is set on that result. Default: 2048. Per value, not per map, so it never changes which headers are reported. set-cookie is a list and each cookie is capped on its own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changedv2.6.0
    • changedInput schema / properties / bail / description
      Previous value: -"Stop at the first request that errors or fails a test, instead of running the rest. Bruno's CLI calls this --bail. Use it when the requests depend on each other: without it, a failed login is followed by every request that needed its token failing too, which is four failures to read for one cause. What it stops is bounded by what has already started. Requests not yet started are skipped — in the failing group and in every group after it — and each comes back as a result with skipped:true rather than being left out, so you can see which ones still need running. Requests already in flight are NOT cancelled, so with parallel:true or a parallel group this skips the tail rather than the remainder, and the run says so in its warnings. A skipped request counts in summary.skipped and in neither passed nor failed. Where the run stopped is reported in the result's bail field. Default: false."New value: +"Stop at the first request that errors or fails a test, instead of running the rest. Bruno's --bail. Requests not yet started come back as results with skipped:true, in the failing group and every group after it. Requests already in flight are NOT cancelled, so under parallel this skips the tail rather than the remainder, and the run warns that it did. A skipped request counts in summary.skipped and in neither passed nor failed. The result's bail field says where the run stopped. Default: false."
    • changedInput schema / properties / captureVariables / description
      Previous value: -"Names of variables set by bru.setVar during the run whose values you want back, e.g. [\"token\"]. A script that captures a value out of a response — bru.setVar(\"token\", res.body.token) — makes it available to later requests as {{token}}, and this is the only way to see it yourself; without it the value exists only inside the run. Every name a script set is listed in capturedVariableNames on every run, so run once to see what is there and then ask for the one you need. Values are only returned for names you list here, and they are returned verbatim. Nothing is captured from the environment file or from variables you supplied — only what a script set."New value: +"Names of variables set by bru.setVar during the run whose values you want back, e.g. [\"token\"]. This is the only way to see one: without it the value exists only inside the run. Every name a script set is listed in capturedVariableNames on every run, so run once to see what is there. Values come back only for names you list here, verbatim. Nothing is captured from the environment file or from variables you supplied, only what a script set."
    • changedInput schema / properties / collectionRoot / description
      Previous value: -"The collection that collectionPath belongs to, when running a subfolder of one: environments and the collection- and folder-level scripts are resolved from here. Must be collectionPath itself or an ancestor of it — a root that does not contain the collection is rejected, because its root scripts would then run against these requests."New value: +"The collection that collectionPath belongs to, when running a subfolder of one: environments and the collection- and folder-level scripts are resolved from here. Must be collectionPath itself or an ancestor of it — a root that does not contain the collection is rejected."
    • changedInput schema / properties / cookieJar / description
      Previous value: -"Keep cookies from each response and send them on later requests in the same run, so a login carries into the requests after it. Scoped to the group — nothing crosses from one group to another, at any parallel setting — held in memory, never written to disk, and matched by host/path/expiry — a cookie set by one host is not sent to another. Precedence, per cookie name: a Cookie header the request writes itself WINS over the jar, and the jar only adds names the request did not set, so a request that pins a specific credential keeps it and a run that relies on the jar is unaffected. This diverges from Bruno's CLI, where the stored value wins the clash; a warning names any cookie whose stored value was dropped. Default: true, matching Bruno's CLI. Set false to send only the Cookie headers a request writes itself."New value: +"Keep cookies from each response and send them on later requests in the same run, so a login carries into the requests after it. Scoped to the group — nothing crosses from one group to another, at any parallel setting — held in memory, never written to disk, and matched by host/path/expiry, so a cookie set by one host is not sent to another. Precedence, per cookie name: a Cookie header the request writes itself WINS over the jar, which only adds names the request did not set. This diverges from Bruno's CLI, where the stored value wins the clash; a warning names any cookie whose stored value was dropped. Default: true. Set false to send only the Cookie headers a request writes itself."
    • changedInput schema / properties / groups / items / properties / data / description
      Previous value: -"Rows to iterate this group over: run it once per row, with the row's columns bound as variables over this group's own. Each iteration is reported as its own group, with the same name and its own index and iterationIndex, because that is what it is — a separate run with a separate store, cookie jar and OAuth2 token cache. Two rows differing only in a password therefore authenticate separately, which is the whole reason to have this rather than a loop inside one group. Mutually exclusive with dataFile. A row overrides both the run-level and the group-level variables per name."New value: +"Rows to iterate this group over: run it once per row, with the row's columns bound as variables over this group's own. Each iteration is reported as its own group, same name, own index and iterationIndex, and is a separate run with a separate store, cookie jar and OAuth2 token cache, so two rows differing only in a password authenticate separately. Mutually exclusive with dataFile. A row overrides both the run-level and the group-level variables per name."
    • changedInput schema / properties / groups / items / properties / dataFile / description
      Previous value: -"A CSV inside the collection whose rows this group iterates over, as data but read from disk. Relative to the collection root; must resolve inside the collection. First line is the header and names the variables. Mutually exclusive with data. Rows are not echoed back in the result, since a column named password is file content this tool will not copy into a transcript — an iteration is identified by its iterationIndex, counting from 0 in file order."New value: +"A CSV inside the collection whose rows this group iterates over, as data but read from disk. Relative to the collection root; must resolve inside the collection. First line is the header and names the variables. Mutually exclusive with data. Rows are not echoed back in the result, since a column named password is file content this tool will not copy into a transcript; an iteration is identified by its iterationIndex, counting from 0 in file order."
    • changedInput schema / properties / groups / items / properties / parallel / description
      Previous value: -"Run this group's own requests concurrently. Default false, whatever the run-level parallel says. Two concurrent requests in one group share that group's store, so they can genuinely contend on a bru.setVar — which is the point when reproducing a race, and a reason to keep a group serial when it is not."New value: +"Run this group's own requests concurrently. Default false, whatever the run-level parallel says. Two concurrent requests in one group share that group's store, so they can genuinely contend on a bru.setVar."
    • changedInput schema / properties / groups / items / properties / startAfter / description
      Previous value: -"Hold this group until another group has got that far — the barrier for a listener that must be connected before a trigger fires. Needs parallel: true on the run, since it is only meaningful while both groups are running. Chains are allowed (A waits on B waits on C); cycles, self-references and gates that could never open are refused before anything runs. If the group being waited on ends early — a crash, or bail — the waiting group does not start and reports that as its error, naming what it was still waiting for, rather than hanging. Use this instead of bru.sleep, which is tuned to whatever the latency was the day it was written."New value: +"Hold this group until another group has got that far — the barrier for a listener that must be connected before a trigger fires. Needs parallel: true on the run. Chains are allowed (A waits on B waits on C); cycles, self-references and gates that could never open are refused before anything runs. If the group being waited on ends early — a crash, or bail — the waiting group does not start and reports that as its error, naming what it was still waiting for, rather than hanging. Use this instead of bru.sleep."
    • changedInput schema / properties / includeResponseHeaders / description
      Previous value: -"Include the response headers of each request in the results, credential values masked. Default: true, which is what every run did before this option existed. Turn it OFF for a run whose results you read in bulk: a header map is small for one response and not for thirty, and a run of a few dozen requests can spend more of its output on the same headers repeated per result than on anything you asked about. A test script is unaffected either way — res.getHeader() always reads the real headers, as res.body always carries the full body while response_body is gated by includeResponseBody."New value: +"Include the response headers of each request in the results, credential values masked. Default: true. Turn it OFF for a run whose results you read in bulk: the same headers repeat per result and a few dozen requests can spend more output on them than on what you asked about. A test script is unaffected: res.getHeader() always reads the real headers."
    • changedInput schema / properties / maxConcurrency / description
      Previous value: -"Ceiling on requests in flight across the whole run. Omit to derive one from this machine's cores and memory, held below capacity. 0 lifts it entirely, at your own risk. Applies to THIS run and is given back when it ends, so it neither re-caps another run already in flight nor outlives the call that asked for it. A ceiling below the number of requests you meant to run at once silently serialises them, so reproducing a race needs a value at least as large as the number of racers."New value: +"Ceiling on requests in flight across the whole run. Omit to derive one from this machine's cores and memory, held below capacity. 0 lifts it entirely, at your own risk. Applies to THIS run and is given back when it ends, so it neither re-caps another run already in flight nor outlives the call that asked for it. A ceiling below the number of requests you meant to run at once silently serialises them."
    • changedInput schema / properties / maxResponseHeaderBytes / description
      Previous value: -"Maximum size (bytes) of one header VALUE to return; a longer value is cut and response_headers_truncated is set on that result. Default: 2048. Per value, not per map, so this changes how much of a long value comes back and never which headers are reported — the names are the part worth reading, and dropping a header to save bytes would take its name with it. set-cookie is a list and each cookie is capped on its own."New value: +"Maximum size (bytes) of one header VALUE to return; a longer value is cut and response_headers_truncated is set on that result. Default: 2048. Per value, not per map, so it never changes which headers are reported. set-cookie is a list and each cookie is capped on its own."
    • changedInput schema / properties / report / description
      Previous value: -"Write the run to a file, in addition to returning it here. Name at least one format. Paths are CONFINED TO THE COLLECTION: a path resolving outside it is refused, with the reason as a run warning, because writing wherever a caller points is a far bigger authorization than running its requests — copy the file afterwards if your pipeline collects it elsewhere. Missing parent directories inside the collection are created, and an existing report is overwritten. The result reports each file written under reports, with its absolute path and size; a report that could not be written never fails the run, it adds a warning naming the format and the reason. A report holds what the results hold — response bodies included, response headers masked exactly as they are here — so it lands on disk with whatever the run saw."New value: +"Write the run to a file as well as returning it here. Name at least one format. Paths are CONFINED TO THE COLLECTION: a path resolving outside it is refused, with the reason as a run warning, because writing wherever a caller points is a far bigger authorization than running its requests. Missing parent directories inside the collection are created, and an existing report is overwritten. Each file written is reported under reports with its absolute path and size; a report that could not be written never fails the run, it adds a warning naming the format and the reason. A report holds what the results hold — response bodies included, response headers masked exactly as they are here — so it lands on disk with whatever the run saw."
    • changedInput schema / properties / report / properties / html / description
      Previous value: -"Path for a self-contained HTML report, relative to collectionPath or absolute inside it, e.g. \"reports/run.html\". Written for a person to open: around 30 KB, rendered by Bruno's own report generator, with execution groups as its iterations so a two-identity run reads as two sections. Two limits worth knowing: the request pane is empty, because a result does not retain the request as it was sent, and assertions and script tests share one list, because a result does not tell them apart."New value: +"Path for a self-contained HTML report, relative to collectionPath or absolute inside it, e.g. \"reports/run.html\". For a person to open: around 30 KB, with execution groups as its iterations, so a two-identity run reads as two sections. Two limits: the request pane is empty, because a result does not retain the request as it was sent, and assertions and script tests share one list, because a result does not tell them apart."
    • changedInput schema / properties / report / properties / junit / description
      Previous value: -"Path for a JUnit XML report, relative to collectionPath or absolute inside it, e.g. \"reports/junit.xml\". Written for CI: one testsuite per request, one testcase per assertion or test, with a request that errored reported as a suite error. What a run could not do is in the file too — a request file that would not parse, a named request that resolved to nothing and a group that crashed each get their own suite, so the report never says a subset ran without saying it was a subset. A request that ran and verified nothing is one SKIPPED testcase rather than an empty suite, because an empty suite is invisible in a CI summary and reads as a pass."New value: +"Path for a JUnit XML report, relative to collectionPath or absolute inside it, e.g. \"reports/junit.xml\". One testsuite per request, one testcase per assertion or test, a request that errored reported as a suite error. What a run could not do is in the file too: an unparseable request file, a named request that resolved to nothing and a group that crashed each get their own suite, so the report never says a subset ran without saying it was a subset. A request that ran and verified nothing is one SKIPPED testcase, not an empty suite, which a CI summary reads as a pass."
    • changedInput schema / properties / requests / description
      Previous value: -"The requests to run, IN THE ORDER GIVEN. Each entry is a .yml or .bru request file, or a directory, which expands to every request under it, recursively. Absolute, or relative to collectionPath. Get paths from list_requests or get_collection_stats. Duplicates are allowed: naming the same request twice runs it twice. Omit to run every request in the collection; an empty [] is a selection of nothing and runs nothing. Cannot be combined with groups. An entry naming nothing is reported in missingRequests rather than failing the run, so you can see which subset ran."New value: +"The requests to run, IN THE ORDER GIVEN. Each entry is a .yml or .bru request file, or a directory, which expands to every request under it, recursively. Absolute, or relative to collectionPath. Get paths from list_requests or get_collection_stats. Duplicates are allowed and run twice. Omit to run every request in the collection; an empty [] is a selection of nothing and runs nothing. Cannot be combined with groups; to run a subset per identity, put the paths in each group's own requests. An entry naming nothing is reported in missingRequests rather than failing the run."
    • changedInput schema / properties / websocket / description
      Previous value: -"Bounds for websocket requests in this run. Applies to every websocket request in the call; there is no per-request form. Omit and the defaults below apply. A session always ends on one of these bounds or on the peer closing, and nothing is held open past the call. Each transcript entry carries its frame type (\"text\", \"binary\", \"ping\", \"pong\" or \"close\"), the authored title of a message the session sent, and, on a close frame, the close_code the peer gave — 1000 is an ordinary goodbye, 1006 a peer that vanished, 1008 a refusal, 1011 a server error. Control frames do not count toward maxMessages. A binary frame's payload is base64; bytes is the true wire size for every kind. A subprotocol is not a bound and is not set here: author it as a Sec-WebSocket-Protocol header on the request, comma-separated for more than one, and it is negotiated at the handshake — the one the server agreed to comes back in that result's response_headers."New value: +"Bounds for every websocket request in this call; there is no per-request form. Omit for the defaults below. A session always ends on one of these bounds or on the peer closing, and nothing is held open past the call. Each transcript entry carries its frame type (\"text\", \"binary\", \"ping\", \"pong\" or \"close\"), the authored title of a message the session sent, and on a close frame the close_code the peer gave — 1000 an ordinary goodbye, 1006 a peer that vanished, 1008 a refusal, 1011 a server error. Control frames do not count toward maxMessages. A binary frame's payload is base64; bytes is the true wire size for every kind. A subprotocol is not a bound and is not set here: author it as a Sec-WebSocket-Protocol header on the request, comma-separated for more than one. It is negotiated at the handshake, and the one the server agreed to comes back in that result's response_headers."
    • changedInput schema / properties / websocket / properties / engineIoKeepalive / description
      Previous value: -"Answer an engine.io PING (the frame \"2\") with a PONG (\"3\"), which is what a socket.io server needs to not disconnect you at pingTimeout. Default: false, because it puts a frame on the wire the request did not author, and it is only ever sent after an OPEN frame has actually been seen. This is the whole of the socket.io support: there is no socketio request kind, and the handshake and event frames are yours to write as ordinary messages."New value: +"Answer an engine.io PING (the frame \"2\") with a PONG (\"3\"), which is what a socket.io server needs to not disconnect you at pingTimeout. Default: false, because it puts a frame on the wire the request did not author, and it is only ever sent after an OPEN frame has been seen. This is the whole of the socket.io support: there is no socketio request kind, and the handshake and event frames are yours to write as ordinary messages."
    • changedInput schema / properties / websocket / properties / idleTimeoutMs / description
      Previous value: -"End a session after this much silence, in milliseconds. Default: 1500. The wall-clock ceiling is a safety bound rather than a schedule, and a request/response session spent all of it waiting on a peer that had already answered; this ends it once nothing has arrived for a while and reports stop_reason \"idle\", which is NOT truncated because no cap bit. The clock starts at the first frame, so a listen-only request that authors no messages still waits out maxDurationMs. Set 0 to wait for the ceiling, which is what a protocol whose gaps are longer than this needs."New value: +"End a session after this much silence, in milliseconds. Default: 1500. Reports stop_reason \"idle\", which is NOT truncated, because no cap bit. The clock starts at the first frame, so a listen-only request that authors no messages still waits out maxDurationMs. Set 0 to wait for the ceiling, which is what a protocol whose gaps are longer than this needs."
    • changedInput schema / properties / websocket / properties / includePayloads / description
      Previous value: -"Record frame CONTENTS, not just their direction, timing and size. Default: false, and the default is a security property: outbound frames are recorded after {{var}} interpolation, so a transcript that included them by default would write every secret you passed in variables into a result that is returned by default. Turn it on when you need to assert on what came back IN THE RESULT. A test script does NOT need it: res.getBody() always carries the real payloads, exactly as res.body always carries a full HTTP body while response_body is gated by includeResponseBody. So includePayloads=false together with content assertions is the intended CI shape, not a workaround — the script checks the payloads and the returned transcript holds only direction, timing and sizes."New value: +"Record frame CONTENTS, not just direction, timing and size. Default: false, and the default is a security property: outbound frames are recorded after {{var}} interpolation, so a transcript that included them by default would write every secret you passed in variables into a result that is returned by default. A test script does NOT need it: res.getBody() always carries the real payloads. So includePayloads=false with content assertions is the intended CI shape, not a workaround."
    • changedInput schema / properties / websocket / properties / sendIntervalMs / description
      Previous value: -"Wait this long between the messages a request sends, in milliseconds. Default: 0, which sends them all in one tick — right for a stream, useless for a protocol that answers, since the reply to the first message arrives after the last one already left. Set a gap and a send-wait-send exchange becomes drivable: the transcript then carries the replies interleaved with the sends, at the offsets they actually arrived. maxDurationMs has to cover the whole paced sequence — a session stopped part way through reports which messages never went out, by name. The idle bound is not armed while the sequence is still going out, so sendIntervalMs above idleTimeoutMs is safe."New value: +"Wait this long between the messages a request sends, in milliseconds. Default: 0, which sends them all in one tick — right for a stream, useless for a protocol that answers. With a gap the transcript carries the replies interleaved with the sends, at the offsets they arrived. maxDurationMs has to cover the whole paced sequence, and a session stopped part way through reports which messages never went out, by name. The idle bound is not armed while the sequence is still going out, so sendIntervalMs above idleTimeoutMs is safe."
  2. Changed5 schema fields changedv2.4.0
    • addedInput schema / properties / bail
      Added value: +{
      +  "default": false,
      +  "description": "Stop at the first request that errors or fails a test, instead of running the rest. Bruno's CLI calls this --bail. Use it when the requests depend on each other: without it, a failed login is followed by every request that needed its token failing too, which is four failures to read for one cause. What it stops is bounded by what has already started. Requests not yet started are skipped — in the failing group and in every group after it — and each comes back as a result with skipped:true rather than being left out, so you can see which ones still need running. Requests already in flight are NOT cancelled, so with parallel:true or a parallel group this skips the tail rather than the remainder, and the run says so in its warnings. A skipped request counts in summary.skipped and in neither passed nor failed. Where the run stopped is reported in the result's bail field. Default: false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / groups / items / properties / startAfter
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Hold this group until another group has got that far — the barrier for a listener that must be connected before a trigger fires. Needs parallel: true on the run, since it is only meaningful while both groups are running. Chains are allowed (A waits on B waits on C); cycles, self-references and gates that could never open are refused before anything runs. If the group being waited on ends early — a crash, or bail — the waiting group does not start and reports that as its error, naming what it was still waiting for, rather than hanging. Use this instead of bru.sleep, which is tuned to whatever the latency was the day it was written.",
      +  "properties": {
      +    "group": {
      +      "description": "The name of the group to wait on. It must be a group in this same call, it must be named, and it must not iterate over rows — several groups under one name give the gate no single position to watch.",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "requestsCompleted": {
      +      "description": "How many of that group's requests must have finished. Default 1, which is the usual meaning of \"once it is up\". A request that failed still counts: the gate marks a position in the group, not a verdict on it, and waiting for a verdict would hang the run rather than report the failure.",
      +      "minimum": 1,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "group"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / includeResponseHeaders
      Added value: +{
      +  "default": true,
      +  "description": "Include the response headers of each request in the results, credential values masked. Default: true, which is what every run did before this option existed. Turn it OFF for a run whose results you read in bulk: a header map is small for one response and not for thirty, and a run of a few dozen requests can spend more of its output on the same headers repeated per result than on anything you asked about. A test script is unaffected either way — res.getHeader() always reads the real headers, as res.body always carries the full body while response_body is gated by includeResponseBody.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / maxResponseHeaderBytes
      Added value: +{
      +  "default": 2048,
      +  "description": "Maximum size (bytes) of one header VALUE to return; a longer value is cut and response_headers_truncated is set on that result. Default: 2048. Per value, not per map, so this changes how much of a long value comes back and never which headers are reported — the names are the part worth reading, and dropping a header to save bytes would take its name with it. set-cookie is a list and each cookie is capped on its own.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / websocket / properties / includePayloads / description
      Previous value: -"Record frame CONTENTS, not just their direction, timing and size. Default: false, and the default is a security property: outbound frames are recorded after {{var}} interpolation, so a transcript that included them by default would write every secret you passed in variables into a result that is returned by default. Turn it on when you need to assert on what came back."New value: +"Record frame CONTENTS, not just their direction, timing and size. Default: false, and the default is a security property: outbound frames are recorded after {{var}} interpolation, so a transcript that included them by default would write every secret you passed in variables into a result that is returned by default. Turn it on when you need to assert on what came back IN THE RESULT. A test script does NOT need it: res.getBody() always carries the real payloads, exactly as res.body always carries a full HTTP body while response_body is gated by includeResponseBody. So includePayloads=false together with content assertions is the intended CI shape, not a workaround — the script checks the payloads and the returned transcript holds only direction, timing and sizes."
  3. Changed8 schema fields changedv2.3.0
    • addedInput schema / properties / data
      Added value: +{
      +  "description": "Rows every group iterates over, as the group-level data but applied to all of them. A group that gives its own data or dataFile REPLACES this rather than adding to it, the same rule environment follows. With no groups given, the run is one group and these rows are its iterations. Mutually exclusive with dataFile.",
      +  "items": {
      +    "additionalProperties": {
      +      "type": [
      +        "string",
      +        "number",
      +        "boolean"
      +      ]
      +    },
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / dataFile
      Added value: +{
      +  "description": "A CSV inside the collection whose rows every group iterates over. Same rules as the group-level dataFile, and likewise replaced by a group that names its own rows. Ceiling of 1000 rows, because every row runs every request in the group and a spreadsheet passed by mistake is an outbound request storm; slice the file and run it in parts.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / groups / items / properties / data
      Added value: +{
      +  "description": "Rows to iterate this group over: run it once per row, with the row's columns bound as variables over this group's own. Each iteration is reported as its own group, with the same name and its own index and iterationIndex, because that is what it is — a separate run with a separate store, cookie jar and OAuth2 token cache. Two rows differing only in a password therefore authenticate separately, which is the whole reason to have this rather than a loop inside one group. Mutually exclusive with dataFile. A row overrides both the run-level and the group-level variables per name.",
      +  "items": {
      +    "additionalProperties": {
      +      "type": [
      +        "string",
      +        "number",
      +        "boolean"
      +      ]
      +    },
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / groups / items / properties / dataFile
      Added value: +{
      +  "description": "A CSV inside the collection whose rows this group iterates over, as data but read from disk. Relative to the collection root; must resolve inside the collection. First line is the header and names the variables. Mutually exclusive with data. Rows are not echoed back in the result, since a column named password is file content this tool will not copy into a transcript — an iteration is identified by its iterationIndex, counting from 0 in file order.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / report
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Write the run to a file, in addition to returning it here. Name at least one format. Paths are CONFINED TO THE COLLECTION: a path resolving outside it is refused, with the reason as a run warning, because writing wherever a caller points is a far bigger authorization than running its requests — copy the file afterwards if your pipeline collects it elsewhere. Missing parent directories inside the collection are created, and an existing report is overwritten. The result reports each file written under reports, with its absolute path and size; a report that could not be written never fails the run, it adds a warning naming the format and the reason. A report holds what the results hold — response bodies included, response headers masked exactly as they are here — so it lands on disk with whatever the run saw.",
      +  "properties": {
      +    "html": {
      +      "description": "Path for a self-contained HTML report, relative to collectionPath or absolute inside it, e.g. \"reports/run.html\". Written for a person to open: around 30 KB, rendered by Bruno's own report generator, with execution groups as its iterations so a two-identity run reads as two sections. Two limits worth knowing: the request pane is empty, because a result does not retain the request as it was sent, and assertions and script tests share one list, because a result does not tell them apart.",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "junit": {
      +      "description": "Path for a JUnit XML report, relative to collectionPath or absolute inside it, e.g. \"reports/junit.xml\". Written for CI: one testsuite per request, one testcase per assertion or test, with a request that errored reported as a suite error. What a run could not do is in the file too — a request file that would not parse, a named request that resolved to nothing and a group that crashed each get their own suite, so the report never says a subset ran without saying it was a subset. A request that ran and verified nothing is one SKIPPED testcase rather than an empty suite, because an empty suite is invisible in a CI summary and reads as a pass.",
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / websocket / description
      Previous value: -"Bounds for websocket requests in this run. Applies to every websocket request in the call; there is no per-request form. Omit and the defaults below apply. A session always ends on one of these bounds or on the peer closing, and nothing is held open past the call."New value: +"Bounds for websocket requests in this run. Applies to every websocket request in the call; there is no per-request form. Omit and the defaults below apply. A session always ends on one of these bounds or on the peer closing, and nothing is held open past the call. Each transcript entry carries its frame type (\"text\", \"binary\", \"ping\", \"pong\" or \"close\"), the authored title of a message the session sent, and, on a close frame, the close_code the peer gave — 1000 is an ordinary goodbye, 1006 a peer that vanished, 1008 a refusal, 1011 a server error. Control frames do not count toward maxMessages. A binary frame's payload is base64; bytes is the true wire size for every kind. A subprotocol is not a bound and is not set here: author it as a Sec-WebSocket-Protocol header on the request, comma-separated for more than one, and it is negotiated at the handshake — the one the server agreed to comes back in that result's response_headers."
    • addedInput schema / properties / websocket / properties / idleTimeoutMs
      Added value: +{
      +  "default": 1500,
      +  "description": "End a session after this much silence, in milliseconds. Default: 1500. The wall-clock ceiling is a safety bound rather than a schedule, and a request/response session spent all of it waiting on a peer that had already answered; this ends it once nothing has arrived for a while and reports stop_reason \"idle\", which is NOT truncated because no cap bit. The clock starts at the first frame, so a listen-only request that authors no messages still waits out maxDurationMs. Set 0 to wait for the ceiling, which is what a protocol whose gaps are longer than this needs.",
      +  "maximum": 60000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / websocket / properties / sendIntervalMs
      Added value: +{
      +  "default": 0,
      +  "description": "Wait this long between the messages a request sends, in milliseconds. Default: 0, which sends them all in one tick — right for a stream, useless for a protocol that answers, since the reply to the first message arrives after the last one already left. Set a gap and a send-wait-send exchange becomes drivable: the transcript then carries the replies interleaved with the sends, at the offsets they actually arrived. maxDurationMs has to cover the whole paced sequence — a session stopped part way through reports which messages never went out, by name. The idle bound is not armed while the sequence is still going out, so sendIntervalMs above idleTimeoutMs is safe.",
      +  "maximum": 60000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  4. First observedv2.2.1

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden and does so thoroughly: group isolation of variable stores and cookie jars, parallel contention, bail skipping and in-flight cancellation, SSRF filtering, report path confinement, credential masking, set-cookie handling, and transport-specific result behavior. It also discloses what is not done, such as no cross-call serialization and no top-level results array.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded and uses section labels, but it is extremely long and dense, with extensive repetition of parameter semantics already present in the 100%-covered schema. It exceeds what is needed even for a 19-parameter tool, making it harder to scan rather than easier.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity, nested objects, lack of output schema, and lack of annotations, the description is complete enough to call correctly. It explains result shape, per-transport fields, error cases, reporting, and edge behavior such as unparseable files and missing requests.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter is already documented in the input schema. The top-level description adds useful cross-parameter context such as requests-versus-groups exclusivity and group isolation, but much of the parameter detail restates the schema rather than adding meaning beyond it. The high-coverage baseline of 3 is therefore appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource: execute requests in a Bruno collection and run their test scripts. It is clearly differentiated from the sibling management tools (list, read, write, create, delete), and an agent can tell this is the execution tool without inspecting the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit selection rules throughout: omit requests or groups to run everything, pass requests OR groups never both, use groups for multiple identities, use startAfter instead of bru.sleep, and use captureVariables to retrieve script-set values. It also points to list_requests and get_collection_stats for discovering paths and environments, so the agent knows where the inputs come from.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.