export_form
Download an existing KoboToolbox form as an XLSForm (.xlsx) file so you can edit it, such as adding translations, before redeploying changes.
Instructions
Download an existing form as an XLSForm (.xlsx) file.
This is essential for modifying existing forms — for example, adding translations. The typical workflow is:
export_form() to get the .xlsx
Edit the .xlsx (e.g., add label::Language columns for translations)
replace_form() to redeploy with changes
Note: get_form() returns the JSON representation, not the XLSForm. Use this tool when you need the actual .xlsx to edit and re-upload.
Args: form_uid: The unique identifier (uid) of the form. output_path: Local file path where the .xlsx will be saved.
Returns: JSON object with form_uid, output_path, and form name.
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": {
"form_uid": "<form_uid>",
"output_path": "<output_path>"
},
"name": "export_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_uid | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |