Submit Activity
submit_activitySubmit one named activity to a single Inistate entry, such as create, edit, delete, or comment, with AI reasoning and confidence for auditable processing.
Instructions
Write operation: one call performs exactly one named activity on one entry of one module, and nothing else runs. The activity is the activity argument — a standard one (create [no entryId], edit, delete, changeStatus, comment, duplicate, manage) or a custom activity the workspace's designer defined (listed by get_module_schema tier=extended); activity names are data, not hidden tools. Call get_form before the first submission per (module, activity); reuse its schema for further entries. The ai object is REQUIRED (reasoning + model + confidence). If confidence < the activity's threshold, the transition is suppressed and the entry is flagged. Server-side guard rules (human/hybrid actor, state-change confirm, confidence-inflation) may block — see inistate://guardrails. Input shapes: ActivitySubmission in inistate://schema/runtime.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ai | Yes | REQUIRED — AI agent traceability | |
| due | No | ISO 8601 | |
| input | No | Field values keyed by display name, as an object (never a JSON-encoded string). File/Image: {name,path}. Module: {id,value} (both required). User: {id,value,username} (all three required). Plural variants (Users/Modules/Files/Images): arrays of those objects. Location: {lat,lng,placeName} — lat/lng unquoted numbers, placeName the place's display name; never a combined "lat,lng" string. Table: an array of row objects keyed by sub-field name, e.g. [{"Item Code": "A-1", "Qty": 2}]. Number/Currency/Integer: JSON numbers, never strings, at the top level and inside Table rows. YesNo: true or false, never "yes". Text/MultilineText/Email: one string — join lines with \n, never an array. User/Module/Location shapes and YesNo/text value types are validated pre-flight — bare ids, bare strings, wrong value types, or objects missing any required key will be rejected. | |
| state | No | Target state name | |
| module | Yes | ||
| comment | No | Optional. Only when necessary to communicate with the user directly. Be concise; leave the detail in the fields. | |
| entryId | No | Omit for create | |
| activity | No | create | |
| entryIds | No | For bulk ops | |
| assignees | No | Usernames | |
| confirmed | No | Set true only after explicit user authorization. Required for: changeStatus, state override, hybrid actor, retry after flag. Does not unlock human-actor activities. See inistate://guardrails. | |
| workspaceId | No | Workspace ID. Omit if set via env or set_workspace; required in stateless/remote mode. |