Get a style guide
get_style_guideGet one text of a style guide Asset — its full free-text translation instructions — 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 gets the style guide of one target language of the project, by locale or project_language id (from get_project or list_style_guides). 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
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_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. | |
| projectLanguageId | No | With project only: target project_language id whose guide to read (from get_project) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | With project only | |
| locale | No | By assetId only: the locale of the text; null for a global Asset | |
| assetId | No | By assetId only | |
| projectId | No | With project only | |
| updatedAt | No | By assetId only | |
| instructions | Yes | ||
| targetLanguage | No | With project only |