edit_section
Replace a rendered section in an HTML file with a new component or raw HTML. Provide the section index and component props or HTML to inject.
Instructions
Replace a rendered section in an HTML file with a new component. Pages rendered with render_page embed section markers. Use list_sections to discover available indices. Provide component+props to re-render, or html for raw replacement.
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": {
"file_path": "<file_path>",
"section_index": "<section_index>"
},
"name": "edit_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Raw HTML to inject directly (bypasses component rendering) | |
| props | No | Props for the new component | |
| component | No | Component type to replace with (e.g. hero, callout, data-table) | |
| file_path | Yes | ||
| section_index | Yes | Section index to replace (from render_page sections order) |