dex_create_custom_field
Add custom fields to contacts in Dex CRM to store specialized information beyond standard contact details.
Instructions
Create a new custom field definition that can be set on any contact.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| custom_field | Yes |
Implementation Reference
- src/tools/custom-fields.ts:34-53 (handler)The handler logic and registration for dex_create_custom_field tool.
server.tool( "dex_create_custom_field", "Create a new custom field definition that can be set on any contact.", { custom_field: z.object({ name: z.string(), type: z.string().optional(), }), }, async (args) => { try { const result = await dex.post("/v1/custom-fields/", { custom_field: args.custom_field, }); return toResult(result); } catch (error) { return toError(error); } } );