update_cell_source
Update a cell's source code for Python, SQL, or Markdown, with correct API wrapping. Pair with run_and_wait to apply changes and auto-refresh the app view.
Instructions
Write new source code to a cell (Python, SQL, or Markdown). cell_type: CODE | SQL | MARKDOWN (default CODE). Used to wrap source in the correct API structure. After updating cells, call run_and_wait to push changes to the app view. The published app refreshes automatically when a run completes — no manual page refresh needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| cell_id | Yes | ||
| cell_type | No | CODE | |
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |