New file from your own file
iwork_create_from_templateCreate a new Numbers, Keynote, or Pages file by copying your own existing .numbers, .key, or .pages template to a new path; refuses to overwrite existing files.
Instructions
Start a new document from one of the user's own files (any .numbers / .key / .pages): copies it to path and checks it opens. Refuses to overwrite. Use when the user has their own template or past file to start from. For Apple's built-in templates use iwork_create.
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": {
"template": "<template>",
"path": "<path>"
},
"name": "iwork_create_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Where to create the new file; it must not exist yet. | |
| template | Yes | The user's own .numbers, .key or .pages file to copy. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||