Create Bike Rows
bike_create_rowsCreate one or more rows in an outline, with support for nested children, custom positions, and HTML content.
Instructions
Creates one or more rows with optional nested structure.
Args:
structure (array, required): Array of rows to create. Each can have:
name (string): Text content (may contain HTML if html=true)
type (string, optional): Row type (body, heading, task, code, quote, note, unordered, ordered, hr)
children (array, optional): Nested child rows
parent_id (string, optional): Parent row ID. If not provided, adds to root.
position (string, optional): Where to insert - 'first', 'last' (default), 'before', 'after'
reference_id (string, optional): Required for 'before'/'after' positioning.
html (boolean, optional): If true, name fields may contain HTML formatting: , , , , ,
Returns: Confirmation: "Created N row(s)"
Examples:
Single row: bike_create_rows({ structure: [{ name: "New item" }] })
With type: bike_create_rows({ structure: [{ name: "Task", type: "task" }] })
Nested: bike_create_rows({ structure: [ { name: "Parent", children: [{ name: "Child" }] } ] })
At position: bike_create_rows({ structure: [{ name: "First!" }], position: "first" })
Before row: bike_create_rows({ structure: [{ name: "Before X" }], position: "before", reference_id: "Kx9" })
With HTML: bike_create_rows({ structure: [{ name: "Click <a href="https://example.com">here" }], html: true })
Errors:
"Bike is not running" - Open Bike app first
"No document is open" - Open a document first
"reference_id is required" - When using before/after without reference_id
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | If true, name fields may contain HTML formatting (strong, em, code, mark, s, a). | |
| position | No | Where to insert: 'first'/'last' child of parent, or 'before'/'after' reference_id. | last |
| parent_id | No | ID of the parent row. If not provided, adds to root level. | |
| structure | Yes | Array of rows to create. Each can have name, type, and children. | |
| reference_id | No | Required when position is 'before' or 'after'. |