copy_page
Duplicate a LeafWiki page and its assets to a target parent or root, with a new title and slug.
Instructions
Copy a page and its assets.
Args: title: Title for the copied page. slug: Slug for the copied page. id: Source page identifier, preferred when both selectors are supplied. path: Slash-separated source page path. target_parent_id: Destination parent identifier, or empty for root.
Returns: JSON-compatible copied 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": {
"title": "<title>",
"slug": "<slug>"
},
"name": "copy_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| path | No | ||
| slug | Yes | ||
| title | Yes | ||
| target_parent_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||