modify_page_object
Modifies an existing Cypress page object by adding methods based on a Vue, React, or CoffeeScript component.
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": {
"pageObjectClassName": "<pageObjectClassName>",
"componentName": "<componentName>"
},
"name": "modify_page_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentName | Yes | Name of the component to analyze for new methods | |
| componentType | No | Type of component (vue, react, coffee, or auto-detect) | auto |
| pageObjectPath | No | Optional path to the page object file (will try to find it automatically if not provided) | |
| additionalContext | No | Any additional context about the component to help with generation | |
| pageObjectClassName | Yes | Name of the page object class to modify |