@zack/translate-text
Translate text into a target language using LLM.
Get started
Install, run, or load this Tool.
01Install
Resolve this exact Tool version and its prepared dependencies.
agentpm install @zack/translate-text@0.1.402Run Tool
Send JSON to its declared input contract and receive JSON output.
agentpm run @zack/translate-text@0.1.4 --input '{"text":"The text to be translated","target_language":"The language to translate the text into"}'Schema-derived starter input. Replace sample values with your own before running.
This Tool declares required environment variables. Review requirements in Runtime & execution before running it.
ORLoad via SDK
Call the installed Tool through an SDK.
import { load } from '@agentpm/sdk';
const t = await load('@zack/translate-text@0.1.4');CLI version & updates
CLI 0.1.36+ reads and preserves standard declarations. New publications require an explicit supported standard; use the latest CLI for current authoring checks. Historical releases remain installable as published. This floor does not establish selected-release installation support or Harness readiness.
Check agentpm --version, then follow the CLI installation and update guide. See the publication compatibility requirements.
Interface
The contract a caller must satisfy, from the authored JSON Schema.
Input
textstringrequiredThe text to be translated
target_languagestringrequiredThe language to translate the text into
No other input fields are accepted.
Complete input schema
{
"type": "object",
"required": [
"text",
"target_language"
],
"properties": {
"text": {
"type": "string",
"description": "The text to be translated"
},
"target_language": {
"type": "string",
"description": "The language to translate the text into"
}
},
"additionalProperties": false
}Output
Variant 1
oktruetranslatedstringThe translated text
Variant 2
okfalseerrorobject- additionalProperties:
- true
Inspect error structure
codestringoptionalStable machine-readable error code (e.g. INPUT_INVALID, FETCH_FAILED)
detailsobjectoptionalOptional structured context
messagestringrequiredHuman-readable error message
Complete output schema
{
"oneOf": [
{
"type": "object",
"required": [
"ok",
"translated"
],
"properties": {
"ok": {
"const": true
},
"translated": {
"type": "string",
"description": "The translated text"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error"
],
"properties": {
"ok": {
"const": false
},
"error": {
"type": "object",
"required": [
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable machine-readable error code (e.g. INPUT_INVALID, FETCH_FAILED)"
},
"details": {
"type": "object",
"description": "Optional structured context"
},
"message": {
"type": "string",
"description": "Human-readable error message"
}
},
"additionalProperties": true
}
},
"additionalProperties": false
}
]
}Runtime & execution
What AgentPM provisions and runs on your machine.
- Runtime
- node 20
- Entrypoint
- node dist/index.js
- Timeout
- 120 s
- Packaged files
- 1
Environment
OPENAI_API_KEYRequiredDeclared by the author and read from your environment at run time. AgentPM neither supplies nor proxies credentials. Local runtime readiness is not evaluated here.
Evidence
Health & Security →Reported by the Registry, for this version. A Registry-performed check is a Registry-reported result, not independent verification.
- APDS conformance
- Legacy inference; conformance not established
- Integrity & provenance
4 recorded signals
- Not applicable: Logical release digestRegistry recomputed metadata binding; archive bytes are not re-downloaded. Historical single archives have no logical release digest.Source: canonical release document and stored manifest/resolution/artifact inventory. Observed .
- Author signature verified by RegistryRegistry namespace signer history; Ed25519 and exact statement binding. This is a Registry-performed check, not independent local verification by the reader or a safety guarantee.Source: stored provenance and Stage 1 verification contracts. Observed .
- Registry attestation verified by RegistryRoot-signed Registry key set; exact origin, validity, key history and Ed25519 statement binding. This is a Registry-performed check, not independent local verification by the reader or a safety guarantee.Source: stored provenance and Stage 1 verification contracts. Observed .
- Not evaluated: Dependency byte integrity not evaluatedUse a local verified installation to check the exact graph's downloaded bytes.Source: Registry metadata only. Observed .
- Target support
- 1 artifact · legacy · provisioning not evaluated
- License
- MIT · declared by the author
Source
Legacy manifest: no explicit APDS declaration. Compatibility may be inferred; this is not verified conformance.
Full agent.json · v0.1.4
{
"kind": "tool",
"name": "translate-text",
"files": [
"dist/"
],
"inputs": {
"type": "object",
"required": [
"text",
"target_language"
],
"properties": {
"text": {
"type": "string",
"description": "The text to be translated"
},
"target_language": {
"type": "string",
"description": "The language to translate the text into"
}
},
"additionalProperties": false
},
"$schema": "https://raw.githubusercontent.com/agentpm-dev/cli/refs/heads/main/schemas/agentpm.manifest.schema.json",
"license": {
"file": "LICENSE",
"spdx": "MIT"
},
"outputs": {
"oneOf": [
{
"type": "object",
"required": [
"ok",
"translated"
],
"properties": {
"ok": {
"const": true
},
"translated": {
"type": "string",
"description": "The translated text"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error"
],
"properties": {
"ok": {
"const": false
},
"error": {
"type": "object",
"required": [
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable machine-readable error code (e.g. INPUT_INVALID, FETCH_FAILED)"
},
"details": {
"type": "object",
"description": "Optional structured context"
},
"message": {
"type": "string",
"description": "Human-readable error message"
}
},
"additionalProperties": true
}
},
"additionalProperties": false
}
]
},
"runtime": {
"type": "node",
"version": "20"
},
"version": "0.1.4",
"entrypoint": {
"args": [
"dist/index.js"
],
"command": "node",
"timeout_ms": 120000
},
"description": "Translate text into a target language using LLM.",
"environment": {
"vars": {
"OPENAI_API_KEY": {
"required": true,
"description": "API key for OpenAI"
}
}
}
}