insert_section
Insert a component section at a specified index, pushing existing sections forward and auto-renumbering all subsequent sections.
Instructions
Insert a new component section at a specific index, pushing existing sections forward. Uses the same section marker system as render_page. Auto-renumbers all subsequent sections.
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>",
"component": "<component>"
},
"name": "insert_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 | Yes | Component type to insert (e.g. hero, callout, data-table) | |
| file_path | Yes | ||
| section_index | Yes | Index to insert at (pushes existing section at this index + all later ones forward) |