Run locally
Requires Node.js 22.18 or later. Run from the cloned repository; this file imports the shared client and contracts insrc/. The default uses fictional local fixtures with no credentials, network calls, invitations, or spending.
USERINTUITION_API_KEY securely in the environment and explicitly select --live. Follow the walkthrough for action-specific arguments and approvals. The report and search adapters were checked against the released API and staging; recheck the live contract when integrating a newer API version.
Inputs
Use —query with the research question and —study for a live scoped search. Optional —cursor, —limit, and —fetch-source constrain or extend retrieval. Fixture mode returns a fixed match and does not execute the query.Expected output
JSON containing mode, request, and response. The response groups canonical results under studies and includes next_cursor. With —fetch-source, a second object contains source_kind and source or explains that there are no matches.Side effects
Retrieves existing evidence; does not create studies, regenerate reports, invite people, or launch recruitment.Failures
Invalid limits, missing live credentials or study ID, HTTP errors, invalid response shapes, and unresolved sources are failures. A successful empty nested results array is distinct from these errors.Complete source file
The following is generated fromexamples/search-research/index.ts, not maintained as a separate snippet. SHA-256: f9d5d4e9d49b518feb7e22fbce170bbc661184ccc16c039cb94e282bbcabbfe5.

