Công cụ lập trình
Text Toolkit
text-toolkit
Use Text Toolkit through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Quick actions
Input files 0Output files 0
Đầu vào
Accepted input contract for this Tool.
| Kind | data |
|---|---|
| File count | 0 – 0 |
| Accepted MIME types | Không có |
Tham số
Pass these values through request.options.
| Parameter | Type | Bắt buộc | Mặc định | Giá trị / Phạm vi | Mô tả |
|---|---|---|---|---|---|
input |
string | Optional | — | — | Text input. |
operation |
enum | Optional | trim-lines |
upper | lower | title | sentence | dedupe | sort-asc | sort-desc | remove-empty | trim-lines | collapse-spaces | Transformation. |
Đầu ra
Result contract returned after successful processing.
| Type | data |
|---|---|
| File count | 0 – 0 |
| MIME types | Không có |
| Metadata | words, characters, lines |
| ZIP archive | No |
Ví dụ cơ bản
Choose a supported integration mode and copy the generated starter code.
Headless
const result = await client.run("text-toolkit", {
options: { operation: "trim-lines" }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "text-toolkit", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.