create_document
Creates a new Markdown document in a mind map at the top level or under a chosen parent element, enabling readable notes and diagrams to be added to the map.
Instructions
マップに、Markdownの文書(MD文書)を新しく作る。指定した要素の子の末尾に、文書の要素を1つ足す(parentElementIdを省略またはnullにすると、マップの最上位の末尾)。作った文書の要素は、アプリでは書類のアイコンとタイトルで見える(タップすると整形した文書が開く。```mermaid のブロックは図になる)。中身はread_documentで読める。既存の文書の書き換えはupdate_documentを使う(これは新しく作るだけ)。contentはMarkdown(UTF-8で1000000バイトまで。超えると何も書かずにエラーを返す)。titleを省略すると、contentの最初の見出し(# の行)、無ければ最初の行がタイトルになる。追加先(parentElementId)はlist_elementsの結果を見て判断すること。
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": {
"mapId": "<mapId>",
"content": "<content>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapId | Yes | list_mapsで得たマップのID | |
| title | No | 行に見せるタイトル。省略するとcontentの最初の見出しから決める | |
| content | Yes | 文書の中身(Markdown) | |
| parentElementId | No | この要素の内側(子)の末尾に足す。マップの最上位に足す場合はnullまたは省略 |