insert_lines
Insert text after a specified line in a Scrapbox page, appending to the end if the line is missing. Supports markdown or Scrapbox syntax for multi-line content.
Instructions
Insert text after a specified line in a Scrapbox page on cosense (scrapbox). If target line not found, text is appended to the end of the page. Uses my-cosense-project project as default if projectName is not specified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to insert in markdown format (default) or Scrapbox syntax (when format is 'scrapbox'). Can contain multiple lines separated by newline characters. | |
| format | No | Content format of the text. 'markdown' (default) converts Markdown to Scrapbox syntax. 'scrapbox' passes content through as-is, preserving Scrapbox-native indentation and syntax. | |
| pageTitle | Yes | Title of the page to modify | |
| projectName | No | Target project name. If not specified, defaults to 'my-cosense-project'. | |
| targetLineText | Yes | Text content of the line after which to insert new text. If not found, text will be appended to the end of the page. |