Set a style guide
set_style_guideCreate or replace one text (free-text translation instructions) of a style guide Asset, by its assetId (from list_assets) and locale. By assetId, a per-locale Asset names the text by its locale (as list_style_guides lists it); a global one has a single text and takes no locale. With project (still accepted for an existing Project) it sets the style guide of one target language of the project, by locale or project_language id (from get_project). You draft the instructions yourself, at most 60000 characters. A brand-new text for a language always marks that language's translation memory stale — in every project and Workflow using the style guide — so future translations follow it; for an update, set recheckExistingTranslations to also re-check already-translated content (it defaults to off). While list_assets shows the Asset repositoryManaged, it is synced from that project's asset repository and every write is refused. These tools edit the stored Assets. A Workflow listed in list_assets repositoryWorkflows reads docs/style-guides/.md and docs/context.md on its repository's triggering commit instead, so those are edited in its files, through a pull request. A missing context file, or style guide file of a declared target language, is added in the web app by Style setup ("Draft style guides" on the Workflow's page), whose drafts pull request only adds files. When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.
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": {
"instructions": "<instructions>"
},
"name": "set_style_guide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Locale of the text. By assetId: required for a per-locale Asset, omitted for a global one. With project: the target language, in place of projectLanguageId. | |
| assetId | No | Id of a style guide Asset, from list_assets. Pass this or project, not both. | |
| project | No | Project id (UUID) or slug — still accepted for an existing Project's attached Asset. Pass this or assetId, not both. | |
| instructions | Yes | The style-guide instructions for this language (max 60000 chars) | |
| projectLanguageId | No | With project only: target project_language id the guide applies to (from get_project) | |
| recheckExistingTranslations | No | When updating an existing text, also mark this language's translation memory stale (re-check existing translations). Defaults to false. A new text always marks stale. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| styleGuide | Yes |