textprocessing_update_style_guide_variant
Replaces an existing variant of a style guide of the calling user's company. This is a full replacement, not a patch: language, domain and body are all set to what you pass. At least one of language or domain is required; the one left unset applies to any. Call get_style_guide_variant first and keep every value the user did not ask to change. A style guide cannot hold two variants for the same language/domain combination. Look identifiers up with list_languages and list_domains. This WRITES data: show the complete intended result and confirm it with the user before calling.
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": {
"styleGuideId": "<styleGuideId>",
"variantId": "<variantId>",
"content": "<content>"
},
"name": "textprocessing_update_style_guide_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The variant body after the replacement, in plain text. | |
| domainId | No | Terminology domain the variant applies to, as a domain ID from list_domains. Omit or null for any domain. The domain must belong to your company (list_domains returns only those). At least one of languageId or domainId is required. | |
| variantId | Yes | ID of the variant to replace, as listed by get_style_guide. | |
| languageId | No | Language the variant applies to, as a TextUnited language ID from list_languages. Omit or null for any language. At least one of languageId or domainId is required. | |
| styleGuideId | Yes | ID of the style guide the variant belongs to, as returned by list_style_guides. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The variant's ID. | |
| content | No | The variant body: the writing rules for this language and domain, in plain text. | |
| domainId | No | The terminology domain this variant applies to, as a domain ID (look it up with list_domains). Null means it applies to any domain. | |
| languageId | No | The language this variant applies to, as a TextUnited language ID (look it up with list_languages). Null means it applies to any language. | |
| languageCode | No | The language code this variant applies to, e.g. "EN-US". Null when the variant applies to any language. | |
| styleGuideId | No | ID of the style guide this variant belongs to. |