playwright_expect_response
Initiate waiting for a specific HTTP response in Playwright automation. Use this tool to prepare for future assertions by identifying the response with a unique ID and URL pattern.
Instructions
Ask Playwright to start waiting for a HTTP response. This tool initiates the wait operation but does not wait for its completion.
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": {
"id": "<id>",
"url": "<url>"
},
"name": "playwright_expect_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique & arbitrary identifier to be used for retrieving this response later with `Playwright_assert_response`. | |
| url | Yes | URL pattern to match in the response. |