Insert JSON
insert-jsonSend events, logs, or records by inserting JSON objects into RawTree tables, which are auto-created on first insert.
Instructions
Purpose: Insert one JSON object or an array of JSON objects into a RawTree table. RawTree auto-creates the table on first insert.
NOT for: Loading data from a public URL (use insert-from-url).
Returns: Insert confirmation, usually { "inserted": }.
When to use:
User wants to send events, logs, traces, metrics, or arbitrary records to RawTree
You need to create a table by inserting the first row
You need to validate that RawTree accepts a payload shape
Workflow: Choose a table name → send a small representative payload → run describe-table or run-query to verify.
Key trigger phrases: "insert this", "send event", "write to RawTree", "create table with data", "ingest JSON"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | A JSON object or a non-empty array of JSON objects to insert. | |
| table | Yes | Target table name. RawTree accepts identifiers like events, traces, api_logs. | |
| cluster | No | RawTree cluster to use for this operation. | |
| database | No | Optional RawTree database override. RawTree uses the default database when omitted. | |
| organization | No | RawTree organization containing the target cluster. |