Crowdin ACTION
Add File to Project
Adds a file into the created project. See the documentation
- Action
- Writes data
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Crowdin account once, then configure and run Add File to Project 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: "crowdin-add-file",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
crowdin: { authProvisionId: "apn_xxxxxxx" },
projectId: "Project ID",
file: "File Path Or Url",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "crowdin-add-file",
"configured_props": {
"crowdin": { "authProvisionId": "apn_xxxxxxx" },
"projectId": "Project ID",
"file": "File Path Or Url"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "crowdin",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "crowdin-add-file",
arguments: {
projectId: "Project ID",
file: "File Path Or Url",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
projectId Project ID | string | The ID of the project Required Dynamic |
file File Path Or Url | string | Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/example.jpg) Required |
name Name | string | The name of the file in Crowdin. Note: Can't contain \ / : * ? " < > | symbols. ZIP files are not allowed. Required |
branchId Branch ID | string | Defines branch to which file will be added. Note: Can't be used with Directory Id in same request Optional Dynamic |
directoryId Directory ID | string | The ID of the directory. Note: Can't be used with Branch Id in same request Optional Dynamic |
title Title | string | Use to provide more details for translators. Title is available in UI only Optional |
context Context | string | Use to provide context about whole file Optional |
type File Type | string | The type of the file. Note: Use docx type to import each cell as a separate source string for XLSX file. Default is auto Optional |
parserVersion Parser Version | integer | Using latest parser version by default. Note: Must be used together with type. Optional |
attachLabelIds Attach Label IDs | string[] | The IDs of the labels to attach Optional Dynamic |
syncDir SyncDir | dir | Optional |
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
- crowdin-add-file
- Version
- 1.0.3
- App
- Crowdin
- Authentication
- OAuth
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗