ensure_path
Verify a nested wiki path exists before writing, creating any missing parent nodes and the final node with a given title and kind.
Instructions
Ensure a nested page path exists.
Args:
path: Slash-separated path to ensure.
title: Title for the final node.
kind: Kind for the final node, either page or section.
Returns: JSON-compatible final page.
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": {
"path": "<path>",
"title": "<title>"
},
"name": "ensure_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | page | |
| path | Yes | ||
| title | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||