Create a form
create_formBuilds a form page that collects question responses into a paired data table, creating a new table or using an existing one.
Instructions
Creates a form page: questions people answer, each answer a new row of a data table paired with the form. Without table a new table is created together with the form, as the form's child page, with one column per field (like "+ → Form" in the web app). With table (a table page id) the form is placed under that existing table (like "Create a form" on a table; parentPath is then ignored) and starts with one field per column — or with exactly fields when given (an existing column by columnId, a new column without it). Field types: text, longtext, number, date, checkbox, select, status, user, link. Folio adds "Submitted at" and "Submitter" to the table on the first answer. A form is private to space members until public: true plus a share link of the form. Returns the form, the paired table id, the columns added and the etag for update_form. Requires an editor role and a write-scoped token.
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": {
"space": "<space>",
"title": "<title>"
},
"name": "create_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space | Yes | Space slug | |
| table | No | Page id of an existing data table to collect the answers in; omit to create a new table with the form | |
| title | Yes | Form title | |
| fields | No | The questions, in order. Without `table` each becomes a new column of the new table | |
| public | No | Accept answers from anyone with a share link of the form (default false: space members only) | |
| parentPath | No | Parent directory path relative to the space root; "" (default) for the space root. Ignored with `table` | |
| description | No | Text shown above the questions | |
| submitButton | No | Label of the submit button (default "Submit" in the reader's language) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Page id | |
| etag | Yes | Etag of the form now — pass it to the next update_form | |
| form | Yes | The form definition | |
| icon | No | Emoji icon, if the page has one | |
| kind | Yes | Page kind: doc, board, table, form, base, canvas, artifact, pdf or office | |
| path | Yes | Path relative to the space root | |
| cover | No | Cover image URL, if the page has one | |
| order | Yes | Position among its siblings | |
| space | Yes | Space slug the page belongs to | |
| title | Yes | Page title | |
| status | Yes | Page status | |
| tableId | Yes | Page id of the paired table (its rows are the answers) | |
| updatedAt | Yes | Last change, ISO timestamp | |
| columnsAdded | Yes | Ids of the columns this call added to the paired table |