@browserstack/mcp-server 1.5.0-beta.16 → 1.5.0-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -161,6 +161,8 @@
161
161
  "intent": "List the load tests in a project — use this to find a testId or browse tests, optionally filtered by type, framework, tag or recent activity.",
162
162
  "guidance": [
163
163
  "Resolve projectId via listLoadTestProjects first.",
164
+ "To find a test by name, pass search=<name> so the server matches it in one call — do not page the whole project and match names yourself. In a large project this is the difference between one call and many.",
165
+ "If several tests match the name, disambiguate by lastRun / updatedSince — do not guess. A descriptive or auto-generated name (e.g. Automation_lts_*) is a real test, not noise; never silently drop it in favour of one that merely sounds more relevant.",
164
166
  "The numeric testId returned here is what getLoadTest and startLoadTestRun need — not a runId.",
165
167
  "lastRun summarises the most recent execution when present."
166
168
  ],
@@ -189,6 +191,49 @@
189
191
  "paginated": true,
190
192
  "max_page_size": 100
191
193
  },
194
+ {
195
+ "name": "searchLoadTests",
196
+ "method": "GET",
197
+ "path": "/api/v1/agent/loadTests/search",
198
+ "mode": "read",
199
+ "entity": "loadTest",
200
+ "query": [
201
+ {
202
+ "name": "name",
203
+ "type": "string",
204
+ "description": "Test name to search for (substring match, case-insensitive); required."
205
+ },
206
+ {
207
+ "name": "limit",
208
+ "type": "integer",
209
+ "description": "Max items to return (1-100, default 50)."
210
+ }
211
+ ],
212
+ "intent": "Find a load test by name across ALL of the caller's projects — use this to resolve a named test to a testId without knowing which project it is in.",
213
+ "guidance": [
214
+ "Group-scoped: unlike listLoadTests it needs no projectId. Prefer it to resolve a named test in one call instead of paging every project.",
215
+ "Each row carries testId, projectId, name, testType and framework — disambiguate same-named tests in different projects by projectId.",
216
+ "Returns one row per test (its latest version); the numeric testId is what getLoadTest and startLoadTestRun need."
217
+ ],
218
+ "returns": [
219
+ "tests",
220
+ "hasMore"
221
+ ],
222
+ "responses": {
223
+ "200": {
224
+ "$response": "Success"
225
+ },
226
+ "400": {
227
+ "$response": "BadRequest"
228
+ },
229
+ "401": {
230
+ "$response": "Unauthorized"
231
+ },
232
+ "500": {
233
+ "$response": "InternalServerError"
234
+ }
235
+ }
236
+ },
192
237
  {
193
238
  "name": "getLoadTestProjectTrends",
194
239
  "method": "GET",
@@ -1156,6 +1201,8 @@
1156
1201
  "testId is numeric; runId values returned are UUIDs.",
1157
1202
  "Each run carries a tags array — its own run-level tags if set (via updateLoadTest with runId), otherwise the tags inherited from the test. Filter with the tag query param.",
1158
1203
  "Filter with status / verdict / date range; page with cursor + limit.",
1204
+ "To find a run by date, pass sinceIso/untilIso to narrow server-side — do not list the full history and scan it yourself. To compare two dated runs, make one narrowed call per date rather than one broad listing.",
1205
+ "If a date resolves to more than one run, ask the user which; do not assume the first or the latest.",
1159
1206
  "One call returns this test's run history — reuse it and page with cursor when needed; do not re-list the same window."
1160
1207
  ],
1161
1208
  "returns": [
@@ -1586,6 +1633,7 @@
1586
1633
  ],
1587
1634
  "capabilities": [
1588
1635
  "listLoadTests",
1636
+ "searchLoadTests",
1589
1637
  "getLoadTest",
1590
1638
  "createLoadTest",
1591
1639
  "updateLoadTest"