launch_app
Launch a pywebview app with the MCP bridge injected and wait until the UI is ready for automation.
Instructions
Launch a pywebview app with the MCP bridge injected, then wait until the UI is ready.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | REQUIRED. Absolute path to the pywebview project root — the folder that contains pyproject.toml (same directory you would cd into before running the app). Example: C:/dev/my-app or /home/dev/my-app | |
| port | No | Bridge HTTP port. Default 7891. | |
| script | No | Entry .py path RELATIVE to cwd (not absolute). Default: main.py. Omit or keep default when main.py is at project root. Use script='app.py' if the entry has another name at root. Use script='src/run.py' or script='backend/gui.py' if the entry is in a subfolder — cwd must still be the project root, not the subfolder. | main.py |
| command | No | DEPRECATED — ignored. Do not use. Older MCP schemas listed this as required; pass cwd instead. | |
| timeout | No | Seconds to wait for UI readiness. Default 45; use 60–90 for cold starts. | |
| app_args | No | Optional CLI arguments forwarded to the script, e.g. ['--verbose']. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |