create_cell
Add a code, SQL, or markdown cell to a Hex project, specifying content, type, and optional location for insertion.
Instructions
Create a new cell in a Hex project.
cell_type: CODE | SQL | MARKDOWN source: the cell's source code / SQL / markdown content label: optional display label for the cell insert_after_cell_id: optional cell ID to insert after (otherwise appends to end) data_connection_id: required for SQL cells — the Hex data connection UUID
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": {
"project_id": "<project_id>",
"cell_type": "<cell_type>",
"source": "<source>"
},
"name": "create_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| source | Yes | ||
| cell_type | Yes | ||
| project_id | Yes | ||
| data_connection_id | No | ||
| insert_after_cell_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |