convert_page
Convert a LeafWiki page into a section or a section back into a page using its ID or path. Specify target_kind as page or section to switch content type.
Instructions
Convert a page to a section or a section to a page.
Args:
target_kind: Destination kind, either page or section.
id: Page identifier, preferred when both selectors are supplied.
path: Slash-separated page path.
Returns: Serializable conversion confirmation.
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": {
"target_kind": "<target_kind>"
},
"name": "convert_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| path | No | ||
| target_kind | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||