productivity
Formstack CLI for AI Agents
Use the Formstack CLI from KosmoKrator to call Formstack tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Formstack CLI Setup
Formstack can be configured headlessly with `kosmokrator integrations:configure formstack`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure formstack --set access_token="$FORMSTACK_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor formstack --json
kosmokrator integrations:status --json Credentials
Authentication type: Manual OAuth token oauth2_manual_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
access_token | FORMSTACK_ACCESS_TOKEN | Secret secret | yes | Access Token |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call formstack.formstack_list_forms '{"page":1,"per_page":1,"search":"example_search"}' --json kosmo integrations:formstack formstack_list_forms '{"page":1,"per_page":1,"search":"example_search"}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs formstack --json
kosmo integrations:docs formstack.formstack_list_forms --json
kosmo integrations:schema formstack.formstack_list_forms --json
kosmo integrations:search "Formstack" --json
kosmo integrations:list --json Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
formstack.formstack_list_forms
List all forms in your Formstack account. Returns form names, IDs, and pagination info. Use search to filter by name.
read - Parameters
- page, per_page, search
kosmo integrations:call formstack.formstack_list_forms '{"page":1,"per_page":1,"search":"example_search"}' --json kosmo integrations:formstack formstack_list_forms '{"page":1,"per_page":1,"search":"example_search"}' --json formstack.formstack_get_form
Get details and field structure of a specific Formstack form. Returns all fields, their types, labels, and options.
read - Parameters
- form_id
kosmo integrations:call formstack.formstack_get_form '{"form_id":1}' --json kosmo integrations:formstack formstack_get_form '{"form_id":1}' --json formstack.formstack_list_submissions
List submissions for a specific Formstack form. Returns submission IDs, timestamps, and optionally expanded field data.
read - Parameters
- form_id, page, per_page, expand_data
kosmo integrations:call formstack.formstack_list_submissions '{"form_id":1,"page":1,"per_page":1,"expand_data":true}' --json kosmo integrations:formstack formstack_list_submissions '{"form_id":1,"page":1,"per_page":1,"expand_data":true}' --json formstack.formstack_get_submission
Get details of a specific Formstack submission. Returns all field values, timestamps, and metadata.
read - Parameters
- submission_id
kosmo integrations:call formstack.formstack_get_submission '{"submission_id":1}' --json kosmo integrations:formstack formstack_get_submission '{"submission_id":1}' --json formstack.formstack_create_submission
Create a new submission for a Formstack form. Pass field values using the field keys from the form structure. Use Get Form first to discover available fields.
write - Parameters
- form_id, fields
kosmo integrations:call formstack.formstack_create_submission '{"form_id":1,"fields":"example_fields"}' --json kosmo integrations:formstack formstack_create_submission '{"form_id":1,"fields":"example_fields"}' --json formstack.formstack_delete_submission
Delete a Formstack submission. This action is permanent and cannot be undone.
write - Parameters
- submission_id
kosmo integrations:call formstack.formstack_delete_submission '{"submission_id":1}' --json kosmo integrations:formstack formstack_delete_submission '{"submission_id":1}' --json formstack.formstack_list_folders
List all folders in your Formstack account. Folders are used to organize forms.
read - Parameters
- none
kosmo integrations:call formstack.formstack_list_folders '{}' --json kosmo integrations:formstack formstack_list_folders '{}' --json formstack.formstack_get_current_user
Get the currently authenticated Formstack user profile. Returns name, email, and account info.
read - Parameters
- none
kosmo integrations:call formstack.formstack_get_current_user '{}' --json kosmo integrations:formstack formstack_get_current_user '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
formstack.formstack_list_forms 3 parameters
kosmo integrations:schema formstack.formstack_list_forms --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number for pagination (default: 1). |
per_page | integer | no | Number of forms per page (default: 25, max: 200). |
search | string | no | Optional search string to filter forms by name. |
formstack.formstack_get_form 1 parameters
kosmo integrations:schema formstack.formstack_get_form --json | Parameter | Type | Required | Description |
|---|---|---|---|
form_id | integer | yes | The numeric ID of the form to retrieve. |
formstack.formstack_list_submissions 4 parameters
kosmo integrations:schema formstack.formstack_list_submissions --json | Parameter | Type | Required | Description |
|---|---|---|---|
form_id | integer | yes | The numeric ID of the form. |
page | integer | no | Page number for pagination (default: 1). |
per_page | integer | no | Number of submissions per page (default: 25, max: 200). |
expand_data | boolean | no | Whether to expand submission data with field labels (default: false). |
formstack.formstack_get_submission 1 parameters
kosmo integrations:schema formstack.formstack_get_submission --json | Parameter | Type | Required | Description |
|---|---|---|---|
submission_id | integer | yes | The numeric ID of the submission to retrieve. |
formstack.formstack_create_submission 2 parameters
kosmo integrations:schema formstack.formstack_create_submission --json | Parameter | Type | Required | Description |
|---|---|---|---|
form_id | integer | yes | The numeric ID of the form to submit to. |
fields | object | yes | Object with field keys and their values. E.g. {"field_123456": "John Doe", "field_234567": "john@example.com"}. Use Get Form to find field keys. |
formstack.formstack_delete_submission 1 parameters
kosmo integrations:schema formstack.formstack_delete_submission --json | Parameter | Type | Required | Description |
|---|---|---|---|
submission_id | integer | yes | The numeric ID of the submission to delete. |
formstack.formstack_list_folders 0 parameters
kosmo integrations:schema formstack.formstack_list_folders --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
formstack.formstack_get_current_user 0 parameters
kosmo integrations:schema formstack.formstack_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults with
integrations:configure. Add --force only for trusted automation that should bypass that policy.