create_document
Creates an empty Huly document in a selected teamspace, optionally under a parent document, and returns its ID so you can add content in a separate update step.
Instructions
Create an empty document in a teamspace, optionally under a parent; returns its id. Write the body with update_document
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": {
"workspace": "<workspace>",
"teamspaceId": "<teamspaceId>",
"title": "<title>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Document title | |
| parentId | No | Parent document id; omit for top-level | |
| workspace | Yes | ||
| teamspaceId | Yes | Teamspace id |