SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

Markdown Table → Update Row

AI-generated

Summary

Updates selected data cells in an existing Markdown table block in SiYuan. It reads the table’s Kramdown, merges the supplied values into the indexed row, then writes the updated Markdown back to the block.

Inputs

  • Table Block ID (required) — ID of the Markdown table block to update.
  • Row Index (required) — Zero-based index of the data row; the header row is excluded.
  • Row Data (required) — One or more column name and value pairs. Values are applied by matching column name; unspecified cells keep their current values. Empty column names are ignored.

Output shape

A single record containing tableBlockId, rowIndex, and rowData.

The row index must refer to an existing data row; out-of-range indexes cause an error. Pipe characters in values are escaped and newlines are replaced with spaces when the row is written.

Links

Discussion