Get website file content
hosting_getWebsiteFileContentV1Fetch a single text file's content from a website's document root. This read-only tool excludes symlinks, oversized files, non-text types, and credential files.
Instructions
Get a single file's content, relative to a website's document root.
Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path, relative to the document root. | |
| domain | Yes | Domain name | |
| username | Yes | username parameter | |
| from_line | No | Line offset to start reading from. | |
| max_lines | No | Max number of lines to return. |