Skip to content

The assistant's tools

The assistant works in Defthand through tools. Each tool matches a task in the app and follows that task’s rules in the app. You do not need to tell your assistant a tool’s name; writing what you want is enough.

The list of tools the assistant sees is per person:

  • Module: a tool shows only for modules in your organization’s subscription. For example, without the Issues module there are no issues_ tools.
  • Permission: a tool shows only if you have the permission to do the same task in the app. Without the permission to design forms, you do not see the form design tools.
  • Record rules: a tool answers “not found” for a record you cannot see. Even if you are an administrator, the assistant does not open another person’s form submission or task.

Ask your assistant “Who am I connected as in Defthand, and which tools can you use?”; the assistant_whoami tool tells your name, your organization and the tools this connection can use.

Changes that go live or are hard to undo are marked destructive; your client asks for your confirmation before running them. The assistant first shows what will change, then waits for your explicit approval. These are: publishing a form and changing its audience, publishing a workflow and binding it to a form, publishing a report dashboard, removing an issue relation, and in the AI Workspace moving to the trash, deleting a column, changing a column’s type and deleting rows.

Tool calls per minute are limited per connection and per person. If a limit is passed, the assistant gets an error telling it to try again “after N seconds”. AI Workspace actions also count against the organization’s usage units.

Tool What it does
forms_list_available Forms you can fill in; those you have a draft of are marked.
forms_get A form’s questions: label, required or not, options, when it shows, help text.
forms_get_draft Your own draft.
forms_save_draft Saves a draft or updates the existing one.
forms_submit Submits the form. A retry does not create a second submission.
forms_list_my_submissions Forms you submitted.
forms_get_submission One of your own submissions, with its answers.

The assistant cannot fill in file, photo, signature, location fields or fields whose options come from a data source. If such a field is required, it saves the draft and tells you to finish the form in the app. Timed forms and forms that show answers live are also filled in in the app.

Tool What it does
forms_design_list The organization’s forms: code, title, status, live version.
forms_design_get A form’s draft.
forms_design_catalog The form definition format: element types, validators, expressions.
forms_design_create A new form, as a draft (nobody can fill it in).
forms_design_update_draft Changes the draft; does not touch the live version.
forms_design_check Checks whether it can be published without writing anything: errors and warnings.
forms_design_publish Makes the draft the new live version (with confirmation).
forms_design_get_audience The form’s audience.
forms_design_set_audience Changes the audience (with confirmation; takes effect at once on a published form).

Writing templates, managing data sources, deleting and archiving forms stay in the app.

Tool What it does
workflow_list_my_tasks Your tasks: open (default), completed or all; search in the title.
workflow_get_task A task: status, due date, what you can do, the request’s answers, attachment names, history and comments.
workflow_claim_task Claims an open task.
workflow_release_task Releases a task you claimed.
workflow_complete_task Approves or rejects (a rejection comment has at least 3 characters).
workflow_return_task Sends the request back to an earlier approval step (comment required).
workflow_reassign_task Hands a task you hold to a colleague named by e-mail address.
workflow_get_request_status Where your request is: the waiting step, with whom, since when.

You cannot approve your own request. The assistant cannot download attachments; you open them in the app.

Tool What it does
workflow_design_list The organization’s workflows.
workflow_design_get A workflow’s draft and its bound forms. Secret values are not shown.
workflow_design_guide The workflow definition language: approval, assignees, condition, webhook, notification, field-write steps.
workflow_design_create A new workflow, as a draft.
workflow_design_update_draft Changes the draft.
workflow_design_check Checks whether it can be published.
workflow_design_publish Publishes the draft as a new version (with confirmation).
workflow_design_bind_form Binds a published version to a form: every new submission of the form starts the workflow (with confirmation).

Webhook secret values are never shown to the assistant; you enter them in the app.

Tool What it does
reporting_catalog Reportable views and their columns; dataset, chart and dashboard rules.
reporting_list_connections Your connections’ names and whether they are ready.
reporting_preview_sql Runs a query without saving it and shows the first rows.
reporting_dataset_list, reporting_dataset_get Datasets.
reporting_dataset_create, reporting_dataset_update Saves or changes a dataset.
reporting_dataset_from_form Builds a dataset from a form.
reporting_chart_list, reporting_chart_get Charts.
reporting_chart_preview_data, reporting_chart_data The data of an unsaved or a saved chart.
reporting_chart_create, reporting_chart_update Saves or changes a chart.
reporting_dashboard_list, reporting_dashboard_get Dashboards.
reporting_dashboard_create, reporting_dashboard_update Builds or changes a draft dashboard.
reporting_dashboard_set_audience Writes a draft dashboard’s audience.
reporting_dashboard_publication Shows what would be opened to whom if it were published.
reporting_dashboard_publish Publishes the dashboard (with confirmation).

The assistant sees only your own datasets, charts and dashboards. It does not change a published dashboard; you do that in the app. Creating connections and database passwords are closed to the assistant.

Tool What it does
issues_list_teams Teams, their statuses and members.
issues_list_labels Labels.
issues_list_projects Projects.
issues_list_cycles A team’s cycles.
issues_list Issue search: text, team, status, assignee (me or an e-mail), label, priority, project, cycle.
issues_get An issue (by id or a key such as BAK-12).
issues_get_timeline Comments and changes.
issues_create Opens an issue; can also open a sub-issue.
issues_update Changes an issue’s fields.
issues_comment Writes a comment or reply, mentions people.
issues_triage_list Issues waiting in triage.
issues_triage_accept, issues_triage_decline Accepts from or declines in triage.
issues_triage_mark_duplicate Marks as a duplicate.
issues_triage_move Moves to another team.
issues_relation_add, issues_relation_remove Adds or removes a relation between issues (removing needs confirmation).
issues_label_create Creates a label (administrator).

If opening an issue or a comment is retried, a second record may be created; the assistant searches first. Trash, bulk editing and attachments stay in the app.

Tool What it does
workspace_guide The workspace’s rules and limits; the assistant reads this first.
workspace_ls A folder’s contents, or the My folders, Shared with me, Shared with the organization lists.
workspace_mkdir Opens a folder; if the same name exists, returns the existing one.
workspace_mv Renames and/or moves.
workspace_rm Moves to the trash (with confirmation).
workspace_write_file Writes up to 100 files at a time or saves a new version.
workspace_read_file Reads a file in parts (up to 16 MB).
workspace_upload_urls, workspace_finish_uploads Gets upload links for large files, uploads, finishes with a virus scan.
workspace_download_url A download link valid for 15 minutes.
workspace_cp Copies a file, document or presentation.
workspace_create_table, workspace_describe_table Builds a table; reads its columns and row count.
workspace_add_table_column, workspace_rename_table_column Adds a column; renames or moves one.
workspace_change_column_type, workspace_delete_table_column Changes a column’s type; deletes a column (both with confirmation).
workspace_insert_rows, workspace_update_rows, workspace_delete_rows Adds, updates, deletes rows (deleting with confirmation).
workspace_read_rows Reads rows, sorted and filtered.
workspace_query_table A read-only SQL query.
workspace_commit_document, workspace_commit_presentation Writes a document or presentation.
workspace_unpack_file Reads a document’s or presentation’s content.

Details: What the assistant can and cannot do.