Übersicht

Get translation

MCPget_translation
READ$0.00003 / call
Features

Get the translation for a specific source path and language.

Input3
Authorizationheaderrequired
Your API key, for the REST call. Sent from your browser straight to the API — never to Docsbook, never stored.
workspace_idstringrequired
Numeric workspace id — OR the project as the user names it: 'owner/repo', the repo name alone, the site's display name, its docs URL or custom domain. Text is resolved server-side; an ambiguous name returns the candidates instead of guessing, so pass what the user said rather than calling list_workspaces first.
source_pathstringrequired
Source document path
languagestringrequired
Target language code
Output1
translationobject
Limitations
  • REQUIRES PRO or higher.
Example input
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_translation",
    "arguments": {
      "workspace_id": "<workspace_id>",
      "source_path": "<source_path>",
      "language": "<language>"
    }
  }
}
Example output
{
  "translation": {}
}

Aktualisiert

War diese Seite hilfreich?