Data & AI
Data Tools
Fetch HTTP data, transform arrays, convert currencies and extract text from PDFs.
Explore 11 capabilities ↓What you can build
- Fetch and transform JSON from external APIs
- Convert and reconcile currency amounts
- Parse PDFs and extract their text and metadata
- Chunk, deduplicate, and reshape datasets
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.
Example action
Sort a dataset
Use this call in a saved OrgSDK action after enabling the plugin.
return await data.processData({
"data": [
3,
1,
2
],
"processor": "sort"
});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 ↗The plugin’s toolkit
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
data.saveResult
ToolSave 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 } }>
