set_document_language
Set the default language of a Word document by providing a BCP-47 language tag such as 'en-US' or 'fr-FR'.
Instructions
Set the default document language.
Writes the BCP-47 language tag into the default paragraph style's run
properties (w:rPr/w:lang) in word/styles.xml.
Args: language_code: BCP-47 language tag, e.g. "en-US", "fr-FR", "de-DE".
Returns: {"language": language_code}
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": {
"language_code": "<language_code>"
},
"name": "set_document_language"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |