set_run_language
Assign a BCP-47 language code to a specific text run within a paragraph to enable correct spell-checking for that portion of the document.
Instructions
Set the language on a run for spell-checking purposes.
Args: para_id: paraId of the target paragraph. run_idx: Zero-based index of the run. language_code: BCP-47 language code (e.g., "en-US", "fr-FR", "de-DE").
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": {
"para_id": "<para_id>",
"run_idx": "<run_idx>",
"language_code": "<language_code>"
},
"name": "set_run_language"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| para_id | Yes | ||
| run_idx | Yes | ||
| language_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |