HTML kit command
file.setSource
Replace HTML
Replaces the whole page with `source` (an HTML document, at most 8 MiB) as one undo step; answers `changed: false` when the source is already the same. The only way to edit the page.
- Kit
- HTML 0.1.0 (HTML (.html or .htm))
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
source | string | yes |
Call through html_run
text
html_run {
"path": "<file>.html",
"steps": [{ "command": "file.setSource", "params": { "source": <string> } }]
}The required parameters, with placeholders for their types: not a tested example. html_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"source": {
"type": "string"
}
},
"required": [
"source"
],
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (html_commands through @kition/[email protected], built from KitionAI/kition-html@e0ad2d3). As data: commands.jsonl.