Set project context
set_project_contextSet the text of a context Asset — free-text prompt guidance (what the product does, its audience, tone) — by its assetId (from list_assets, which carries its current text), and return the text written. A global context has one text for every language and takes no locale; a per-locale one takes the locale of the text. With project (still accepted for an existing Project) it sets the project's project-wide context and returns the project; read its current value with get_project. At most 1000 characters; an empty one clears it. A Workflow's own context (get_workflow) is part of its definition and changes only by publishing a new version, not here. While list_assets shows the Asset repositoryManaged, 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": {
"context": "<context>"
},
"name": "set_project_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | By assetId only: the locale of the text, for a per-locale context; omitted for a global one | |
| assetId | No | Id of a context Asset, from list_assets. Pass this or project, not both. | |
| context | Yes | The context text (max 1000 chars) | |
| project | No | Project id (UUID) or slug — still accepted for an existing Project's attached Asset. Pass this or assetId, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| slug | No | ||
| orgId | No | ||
| locale | No | By assetId only: the locale of the text; null for a global Asset | |
| assetId | No | By assetId only | |
| context | No | Project-wide translation context; null when unset | |
| updatedAt | No | By assetId only | |
| repository | No | The connected repository, null when the project has none | |
| sourceLanguage | No | ||
| targetLanguages | No |