write_html_file
Writes HTML tool files into a workspace using relative paths and automatically creates intermediate directories. Use it to save CSS, JS, or markup content in the correct HTML tool folder.
Instructions
Write content to a file inside an HTML tool folder in a workspace. The path must be relative to the workspace (e.g. "resources/html/my-tool/style.css"). Creates intermediate directories as needed.
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>",
"content": "<content>"
},
"name": "write_html_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Full file content to write | |
| filePath | Yes | File path relative to the workspace root (e.g. "resources/html/my-tool/script.js") | |
| workspacePath | Yes | Absolute path to the workspace directory |