generate_page_object
Generates Cypress page objects from Vue, React, or CoffeeScript components to automate test setup.
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": {
"componentName": "<componentName>"
},
"name": "generate_page_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Optional category for organizing page objects (e.g., 'common', 'patient', 'admin') | |
| outputPath | No | Optional path where the page object should be saved | |
| componentName | Yes | Name of the component to analyze (e.g., 'Dialog', 'PatientChart') | |
| componentType | No | Type of component (vue, react, coffee, or auto-detect) | auto |
| additionalContext | No | Any additional context about the component to help with generation |