Read Site File
read_site_fileRead any text or code file from a Local by Flywheel WordPress site directory using a relative path. Handles path validation and enforces a 512KB size limit.
Instructions
Read a file from the Local by Flywheel site directory. Path is relative to the site root (e.g., "app/public/wp-config.php"). Files are limited to 512KB. All paths are validated against the site directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path from site root (e.g., "app/public/wp-content/themes/mytheme/style.css") | |
| site | No | Site name, ID, or domain. Uses env var if not specified. |