View as Markdown
Translate.com icon

Translate.com ACTION

Translate Text

Translante a text using machine. [See the documentation](https://translation-api.translate.com/api/documentation?_gl=11qes1da_gaMTMwNzkzMTg3OC4xNjk1NDE3MDIy_ga_T51KL347BB*MTY5NTQxNzAyMS4xLjAuMTY5NTQxNzAyMS42MC4wLjA.#/Machine Translation)
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Translate.com account once, then configure and run Translate Text from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "translate_com-translate-text",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    translate_com: { authProvisionId: "apn_xxxxxxx" },
    sourceLanguage: "Source language",
    translationLanguage: "Translation language",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Translate Text inputs
Property Type Description
sourceLanguage Source language string
The language of the source text
Required Dynamic
translationLanguage Translation language string
The translation language
Required Dynamic
text Text string
Text to be translated
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
translate_com-translate-text
Version
0.0.2
App
Translate.com
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes