create_table
Create a new Markdown table from pipe-formatted content, inserting it at a chosen position in HTML or GFM format and returning a version hash for subsequent edits.
Instructions
Create a new table in a Markdown file. Provide content as a pipe table.
The table is written in the specified format: "html" (default, collapsed single-line HTML suitable for GitBook) or "pipe" (GFM pipe table).
No version hash needed — this creates, not edits.
On success returns v:{hash} of the new table. Use this hash with
read_table and write tools to edit the table immediately.
On error returns JSON with "error" and "message" fields.
Args: file_path: Absolute path to the Markdown file. Created if it doesn't exist. content: Table in pipe format (header row + delimiter + data rows). Example: "| Name | Age |\n| --- | --- |\n| Alice | 30 |" position: 1-based line number to insert AFTER. -1 appends (default). 0 inserts at top. format: "html" (default) or "pipe". HTML produces collapsed single-line GitBook-compatible output. GitBook will auto-add width/data-* attributes on sync.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | html | |
| content | Yes | ||
| position | No | ||
| file_path | Yes |