insert_column
Add a new column to a Markdown table, setting a default value for all existing rows. Requires a version hash for safe updates.
Instructions
Insert a new column. Requires version hash from read_table.
All existing rows are populated with default_value (empty string if omitted).
On success returns ONLY v:{new_hash}.
On error returns JSON with "error" and "message" fields.
Args: file_path: Absolute path to the Markdown file. table_index: 0-based table index from list_tables. version: 12-char hex hash from read_table (after "v:"). name: Header text for the new column. default_value: Value for all existing rows (default: empty string). position: 0-based column index for insertion. -1 appends to the right (default).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| version | Yes | ||
| position | No | ||
| file_path | Yes | ||
| table_index | Yes | ||
| default_value | No |