Translate a webpage or documentation
translate_pageUse this when the user wants to translate a public webpage, documentation or public-domain text that they own or have the rights to translate. Input tips: url of the page (http or https), target_lang as a language code such as vi, es, fr, de, ja, zh, pt, ko, and confirm_rights true only after the user confirms the rights. Returns: clean Markdown with headings, lists and code kept, usually in 5 to 15 seconds for a page of up to 8,000 characters, plus characters left today. Not for: copyrighted fiction, manga, manhwa or commercial comics, pasted text, local files or pages behind a login. Errors and next step: rights_not_confirmed (ask the user, then set confirm_rights true); page_too_large over 12,000 characters (offer a shorter page, such as one chapter on its own URL); fetch_failed or no_content (check the URL opens without a login, or pick a page whose text is in the HTML); daily_translation_spent (the daily character limit is used up; try again after 00:00 UTC); translation_failed (try again in a minute).
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": {
"url": "<url>",
"target_lang": "<target_lang>",
"confirm_rights": "<confirm_rights>"
},
"name": "translate_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public webpage URL to fetch and translate, such as https://example.com/docs/start (http or https; local and private addresses are blocked). | |
| source_lang | No | Optional ISO 639-1 code of the page language, such as en. Read from the page HTML (or en) when omitted. | |
| target_lang | Yes | ISO 639-1 code of the language to translate into, such as vi (Vietnamese), es, fr, de, ja, zh, pt, ko, ru, ar or hi. A few are 3 letters: ast, ceb, ilo. | |
| confirm_rights | Yes | Set true only after the user has confirmed they own this page or have the rights to translate it (docs, public domain, or user-owned content). Must not be used for copyrighted fiction or comics. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page address that was fetched. | |
| as_of | Yes | When the translation was made (ISO 8601 UTC). | |
| model | Yes | The translation model used. | |
| notes | Yes | Facts to pass on, such as a reminder to check machine translation before publishing. | |
| title | No | The page title as written on the page, not translated. | |
| usage | Yes | ||
| status | Yes | Always ok: errors come back as error text, not as a result. | |
| markdown | Yes | Clean translated Markdown containing headings, paragraphs, and lists. | |
| source_lang | Yes | Language code the page was translated from. | |
| target_lang | Yes | Language code the page was translated into. | |
| character_count | Yes | Characters of page text that were translated. |