install_widget
Inject the feedback widget script into an HTML file to enable visual browser feedback. Deprecated: use the browser extension (setup_extension) instead.
Instructions
Deprecated — prefer the browser extension (setup_extension). Automatically install the feedback widget into a web application by injecting the script tag into an HTML file. Supports auto-detection of common entry points (index.html, etc.) or a specific file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dev_only | No | If true, wraps the script in a hostname check so it only loads in development. Defaults to true. | |
| file_path | No | Path to the HTML file to inject the widget into. If not provided, will attempt to auto-detect common entry points in the current directory. | |
| project_dir | No | Project directory to search for HTML files. Defaults to current working directory. | |
| allowed_hostnames | No | List of hostnames or patterns allowed when dev_only is true. Supports exact matches (e.g., 'localhost') and wildcard patterns where '*' matches any characters including dots (e.g., '*.local.itkdev.dk' matches 'app.local.itkdev.dk', '*.local.*' matches 'app.local.example.dk'). Defaults to common local dev patterns: localhost, 127.0.0.1, *.local, *.local.*, *.test, *.dev, *.ddev.site |