Test a data source address
test_data_source_connectionFetch a PUBLIC endpoint or feed once and report how many items it returned, the fields in a sample item and — with content_key — a suggested field mapping onto that section. Saves nothing, but it is a real request to the outside address. The address must be public http(s) and need no key; an endpoint that answers 401/403 needs a key, which is connected in the site's Data Sources settings, never in a conversation. Always test before connect_data_source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| content_key | No | The section you intend to fill, from list_bindable_content_keys | |
| source_type | Yes | "rest_api" for any JSON/HTTP endpoint, "rss" for an RSS/Atom feed | |
| endpoint_url | Yes | The full public address to fetch | |
| response_path | No | Dot-path to the list inside the JSON, e.g. "data.plans". Omit for a top-level list or a feed. |