`GET /api/commands/options/{provider_id}?q=` — resolve a named `OptionProvider` (`recent_tasks` / `models` / `efforts` / `projects` / `agents` / …) against the caller's tenancy, filtered by `q`. An unregistered provider id is a 404.
const url = 'https://example.com/api/commands/options/example';const options = {method: 'GET', headers: {cookie: 'supacloud_session=<supacloud_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/commands/options/example \ --cookie supacloud_session=<supacloud_session>GET /api/commands/options/{provider_id}?q= — resolve a named OptionProvider
(recent_tasks / models / efforts / projects / agents / …) against the
caller’s tenancy, filtered by q. An unregistered provider id is a 404.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Registered OptionProvider id
Query Parameters
Section titled “Query Parameters”Free-text filter (case-insensitive substring). Empty / absent = unfiltered.
The selected model id a model-aware provider keys its listing off (the effort_levels provider offers that model’s harness-native effort ladder, else the abstract 5-step). Absent = a tenancy-only lookup; other providers ignore it.
Responses
Section titled “Responses”OK
A selectable option for a parameter (ADR §2.2 Choice). Wire mirror of
[sc_svc_mcp::command_registry::options::Choice].
object
Example generated
[ { "glyph": "example", "hint": "example", "label": "example", "value": "example" }]Authentication required
Permission denied
No such option provider
Structured server error