Data & AI
Data Tools
Fetch JSON from HTTP APIs, transform arrays and extract text from PDFs in an OrgSDK action. Local transforms need no stored credential.
View 11 plugin functions ↓Use Data Tools in a project
- Fetch and transform JSON from external APIs
- Extract text, page counts and available metadata from text-based PDFs
- Chunk, deduplicate and reshape arrays for a report
Access and credentials
Local data and file utilities plus outbound HTTP fetch. No stored credentials and no destructive external actions.
This plugin does not declare a stored credential requirement.
Sort a dataset
In Studio, open your project’s Plugins page and enable Data Tools. Paste this example into an action in the same project.
// Put these three numbers in order from smallest to largest.
return await data.processData({
"data": [
3,
1,
2
],
"processor": "sort"
});Workflow examples and guides
Use with OrgSDK
OrgSDK gives external AI clients persistent projects and controlled execution. Plugins add optional tools to those projects. Each run uses pinned plugin versions, and project configuration determines which credentials they can use.
Set up OrgSDK locally ↗Capabilities
11 functions from this published version. Read calls retrieve or process information; write actions can change data in the connected service.
11 of 11 functions
data.convertCurrency
Read callConvert currency amount from one currency to another. IMPORTANT: Returns OBJECT with {convertedAmount: number, originalAmount: number, rate: number}. Use result.convertedAmount to get the numeric converted value. Example: const result = await convertCurrency(100, 'USD', 'AUD'); const converted = result.convertedAmount; Available rates: USD_TO_AUD=1.53, EUR_TO_AUD=1.67, GBP_TO_AUD=1.92
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
amount | number | — |
fromCurrency | string | — |
toCurrency | string | — |
Returns Promise<{ originalAmount: number; fromCurrency: string; convertedAmount: number; toCurrency: string; rate: number }>
data.fetchData
Read callFetch JSON data from a URL
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
url | string | — |
Returns Promise<any>
data.sumArray
Read callSum all numbers in an array
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
numbers | number[] | — |
Returns number
data.chunkArray
Read callSplit array into chunks of specified size
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
array | T[] | — |
size | number | — |
Returns T[][]
data.uniqueBy
Read callRemove duplicates from array by key
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
array | T[] | — |
key | keyof T | — |
Returns T[]
data.groupBy
Read callGroup array items by key
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
array | T[] | — |
key | keyof T | — |
Returns Record<string, T[]>
data.processData
Read callProcess data array
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
data | any[] | — |
processor | string | — |
Returns any[]
data.transformData
Read callTransform data array with various operations
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
data | any[] | — |
transformer | string | — |
key | string | — |
Returns any
Save a result to storage
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
key | string | — |
value | any | — |
storage | Record<string, any> | — |
Returns { key: string; value: any; saved: boolean }
Validate data against rules
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
data | any | — |
rules | Record<string, any> | — |
Returns { valid: boolean; errors: string[] }
data.parsePdf
Read callExtract text content and metadata from a PDF. Accepts standard base64 string (e.g. from getMessageAttachment().dataBase64). Returns full text, page count, and optional metadata.
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
base64Data | string | — |
Returns Promise<{ text: string; totalPages: number; metadata?: { title?: string; author?: string; subject?: string; creator?: string; producer?: string } }>
