Create item
createCreate an item or a record. Fields are passed through as given and checked by the product, so read the item first and send the field names it reports; an unknown or malformed field comes back as an error naming it.
By type: • form — a new form in space_id. body is its source in the form source dialect (read get_help topic "forms" first); omitted, the form starts empty. title names it. folder is an @platform folder id from list (omitted: the top of the space). slug is not taken here: write slug in the body's frontmatter, or set custom_slug with update afterwards. • folder — title names it; parent is the folder it goes in. It holds documents and workflows; with no parent it goes at the top of the space. • document — from a template or another document: from is its id. With fields (participants, prefill, …) a draft is made from it; with only title it is copied. folder places the result. Nothing is sent: send_document is its own step. • workflow — a new draft workflow in space_id (or folder). title names it; body is an initial definition in the workflow dialect (get_help topic "workflow"). Nothing runs until publish. • product, coupon — on a Paperform form: parent is the form id, fields the record (a product needs its products field's key and an upper-case SKU; a coupon its code and discountPercentage or discountAmount). • form_webhook — on a Paperform form (parent): fields.target_url receives every submission, personal details included. Confirm with the user before calling this. • document_webhook — on a folder (parent): fields.url receives signing events, participant emails included. Confirm with the user before calling this.
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": {
"type": "<type>"
},
"name": "create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The initial source: the form source dialect for a form (get_help topic "forms"), or the workflow dialect for a workflow (get_help topic "workflow"). Omitted, a valid starter is used. | |
| from | No | Documents: the template or document id to start from. | |
| slug | No | Not taken here: write slug in the form source frontmatter. | |
| type | Yes | What to create. | |
| title | No | The new item's name. | |
| fields | No | The record's fields, as the product names them. | |
| folder | No | The folder id to put it in: an @platform folder from list. | |
| parent | No | The id the new record belongs to (a form, a folder). | |
| message | No | Not used here; leave it out. | |
| space_id | No | The space to act in — a key of whoami's `spaces`. Not needed when another argument already carries an id from that space, or when this connection reaches only one space. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| url | No | ||
| title | No | ||
| record | No | ||
| dry_run | No | ||
| diagnostics | No |