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).
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": {
"file_path": "<file_path>",
"table_index": "<table_index>",
"version": "<version>",
"name": "<name>"
},
"name": "insert_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| version | Yes | ||
| position | No | ||
| file_path | Yes | ||
| table_index | Yes | ||
| default_value | No |