GET /v1/tool-output-fmtFormat tool output as table/CSV/JSON
Agent Tools lf-agent-tools
Lays out raw data in a form people can read: a table, CSV, or tidy JSON. Formats a JSON array or object into a human-readable table, CSV string, or formatted JSON output.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | Yes | JSON array or object |
format | string | No | table/csv/json |
Response Schema
success (boolean): Operation success
formatted (string): Formatted output
format (string): Format used
rows (integer): Number of rows
cURL Example
curl 'https://lf-agent-tools.laminarforge.dev/v1/tool-output-fmt?data=[{"a":1}]&format=table' -H 'Authorization: Bearer lf_YourApiKey'Python Example
import requests
url = 'https://lf-agent-tools.laminarforge.dev/v1/tool-output-fmt'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'data': '[{"a":1}]', 'format': 'table'}
response = requests.get(url, headers=headers, params=params)
print(response.json())