codebook.addCell
Add a new cell to CodeBook for code execution, documentation, AI processing, data management, or visualization within Circuitry's workflow platform.
Instructions
Add a new cell to CodeBook. Creates a linked node in the workflow and inserts it in the cell order.
Supported cell types:
code: Python/JavaScript code with execution
text: Markdown documentation with LaTeX support ($...$)
agent: AI-powered processing cell
datagrid: Spreadsheet/sheet for data
chart: Visualization cell
image: Image display cell
This is the preferred way to add nodes when CodeBook is open. For workflow canvas, use code.create, text.create, or sheet.create instead.
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": {
"nodeType": "<nodeType>"
},
"name": "codebook.addCell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeType | Yes | Type of cell: code, text, agent, datagrid, chart, image | |
| afterCellId | No | Insert after this cell ID (optional, defaults to end) | |
| executionTarget | No | For code cells: pyodide, this-computer, or eserver:<id> |