Run UGC Agent
run_ugc_agentRun a full UGC Agent sourcing/refine/export turn on the web app's search engine. Returns an app_url for table review and CSV export. Small targets finish inside the call and return the creators. A longer search returns status 'running' with list_id, found_so_far and an instruction: wait about 30 seconds and call get_run_status with that list_id instead of calling this tool again. Negations in the goal are honoured; plan limits, stored preferences and cross-run dedupe are applied by the web app for the signed-in user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | Optional Firebase uid. Must match the URL uid unless local fallback is enabled. | |
| goal | Yes | Plain-English sourcing/refine/export request. | |
| target | No | Fallback number of new leads to add. | |
| bearer_token | No | Optional Firebase ID token. Hosted clients normally authenticate with an API key in the Authorization header or ?uid= in the URL instead. | |
| seed_handles | No | Example Instagram handles/URLs for 'find more like these'. | |
| exclude_niches | No | Verticals the user ruled OUT ('any niche but photography' -> ['photography']). Negations written in the goal are also honoured automatically. | |
| conversation_id | No | Creator-list key for durable state. Reuse a returned list_id for follow-ups; when omitted, MCP uses the active generated list for this tool chain. | |
| preferences_mode | No | How to apply preferences for this call: 'stored' uses users/{uid}.agentPreferences, 'override' uses agent_preferences only, and 'none' disables stored filtering for this run. | |
| agent_preferences | No | Optional per-call filtering preferences. Use with preferences_mode='override'. For backwards compatibility, passing this without preferences_mode implies override. | |
| exclude_locations | No | Markets the user ruled OUT, as ISO country codes ('any country except India' -> ['IN']). Negations written in the goal are also honoured automatically. |