get_fields
Retrieve field schema for a company entity to build or verify data mapping before running an import.
Instructions
Returns the field schema for an entity in a company: every field with its type, required flag, alternativeTitles, and predefinedValues. Use to build or verify a mapping before running an import.
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": {
"companyId": "<companyId>",
"entityName": "<entityName>"
},
"name": "get_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company id from list_companies. | |
| entityName | Yes | Entity name from list_entities (e.g., 'Invoice', 'Bill'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Field schema entries for the entity. |