KosmoKrator

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, configure, and verify
# 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.

KeyEnv varTypeRequiredLabel
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.

Generic CLI call
kosmo integrations:call formstack.formstack_list_forms '{"page":1,"per_page":1,"search":"example_search"}' --json
Provider shortcut
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.

Discovery commands
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 read
Parameters
page, per_page, search
Generic call
kosmo integrations:call formstack.formstack_list_forms '{"page":1,"per_page":1,"search":"example_search"}' --json
Shortcut
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 read
Parameters
form_id
Generic call
kosmo integrations:call formstack.formstack_get_form '{"form_id":1}' --json
Shortcut
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 read
Parameters
form_id, page, per_page, expand_data
Generic call
kosmo integrations:call formstack.formstack_list_submissions '{"form_id":1,"page":1,"per_page":1,"expand_data":true}' --json
Shortcut
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 read
Parameters
submission_id
Generic call
kosmo integrations:call formstack.formstack_get_submission '{"submission_id":1}' --json
Shortcut
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 write
Parameters
form_id, fields
Generic call
kosmo integrations:call formstack.formstack_create_submission '{"form_id":1,"fields":"example_fields"}' --json
Shortcut
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 write
Parameters
submission_id
Generic call
kosmo integrations:call formstack.formstack_delete_submission '{"submission_id":1}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call formstack.formstack_list_folders '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call formstack.formstack_get_current_user '{}' --json
Shortcut
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
Schema command
kosmo integrations:schema formstack.formstack_list_forms --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema formstack.formstack_get_form --json
ParameterTypeRequiredDescription
form_id integer yes The numeric ID of the form to retrieve.
formstack.formstack_list_submissions 4 parameters
Schema command
kosmo integrations:schema formstack.formstack_list_submissions --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema formstack.formstack_get_submission --json
ParameterTypeRequiredDescription
submission_id integer yes The numeric ID of the submission to retrieve.
formstack.formstack_create_submission 2 parameters
Schema command
kosmo integrations:schema formstack.formstack_create_submission --json
ParameterTypeRequiredDescription
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
Schema command
kosmo integrations:schema formstack.formstack_delete_submission --json
ParameterTypeRequiredDescription
submission_id integer yes The numeric ID of the submission to delete.
formstack.formstack_list_folders 0 parameters
Schema command
kosmo integrations:schema formstack.formstack_list_folders --json
ParameterTypeRequiredDescription
No parameters.
formstack.formstack_get_current_user 0 parameters
Schema command
kosmo integrations:schema formstack.formstack_get_current_user --json
ParameterTypeRequiredDescription
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.