set_custom_field
Set a custom field value on a document with automatic parsing of numbers, booleans, and strings.
Instructions
Set a custom field value on a document. Requires the document ID, class, field ID (from list_custom_fields), and value. Values are auto-parsed: numbers from numeric strings, booleans from 'true'/'false', strings as-is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectId | Yes | a string that will be trimmed | |
| objectClass | Yes | a string that will be trimmed | |
| fieldId | Yes | a string that will be trimmed | |
| value | Yes | Value to set. Strings are passed as-is. For numbers, pass a numeric string (e.g. '42'). For booleans, pass 'true' or 'false'. For enums, pass the enum value string. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The successful tool result. The same value is also serialized as JSON in the text content for clients that do not read structuredContent. | |
| warnings | No | Optional agent-visible warnings about degraded result fidelity. Omitted when the server returned the documented happy-path payload. |