insert_row
Add a new row at a specific position in CSV data, supporting dictionary, list, or JSON string formats with null value handling.
Instructions
Insert new row at specified index with multiple data formats.
Supports dict, list, and JSON string input with null value handling. Returns insertion result with before/after statistics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| row_index | Yes | Index to insert row at (0-based, -1 to append at end) | |
| data | Yes | Row data as dict, list, or JSON string |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | Yes | Current column names | |
| success | No | Whether operation completed successfully | |
| operation | No | Operation type identifier | insert_row |
| row_index | Yes | Index where row was inserted | |
| rows_after | Yes | Row count after insertion | |
| rows_before | Yes | Row count before insertion | |
| data_inserted | Yes | Actual data that was inserted |