add_cell
Insert a markdown, shell, or HTTP cell into a runbook at a specified position, with optional execution targeting for Kubernetes, ECS, or EC2.
Instructions
Add a cell to a runbook.
Args: runbook_id: The runbook to add the cell to. cell_type: One of: 'markdown' (documentation), 'shell' (bash script), 'http' (HTTP request). content: The cell content — markdown text, bash script, or HTTP request body. order: Position in the notebook (0-indexed). Cells execute in ascending order. target_type: Execution target — 'k8s', 'ecs', or 'ec2'. Null for markdown cells. target_config: JSON string with target config: k8s: {"namespace": "production", "pod_selector": "app=api"} ecs: {"cluster_arn": "arn:aws:ecs:...", "task_definition": "my-task:5"} ec2: {"instance_id": "i-0abc123def456"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | ||
| content | Yes | ||
| cell_type | Yes | ||
| runbook_id | Yes | ||
| target_type | No | ||
| target_config | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |