read_html_file
Read HTML files from a workspace's resources/html/ folder, using startLine/endLine to page through large files. Results include totalLines to help navigate the document.
Instructions
Read one file inside an HTML tool folder (paths under resources/html/ only). For large files, pass startLine/endLine to read a range — the result always includes totalLines. The injected design-system baseline appears as a one-line placeholder comment; never edit it.
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": {
"workspacePath": "<workspacePath>",
"filePath": "<filePath>"
},
"name": "read_html_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | No | Last line to return (1-based, inclusive). Omit to read to the end. | |
| filePath | Yes | File path relative to the workspace root (e.g. "resources/html/my-tool/index.html") | |
| startLine | No | First line to return (1-based, inclusive). Omit to start from the beginning. | |
| workspacePath | Yes | Absolute path to the workspace directory |