`POST /api/commands/{word}/resolve` — step the resolver state machine for `word` with the supplied partial args. Returns `ready` (the resolved invocation), `need_param` (the next param + its options), or `invalid` (a bad value + a hint). An unknown OR role-hidden word is a 404.
const url = 'https://example.com/api/commands/example/resolve';const options = { method: 'POST', headers: { cookie: 'supacloud_session=<supacloud_session>', 'Content-Type': 'application/json' }, body: '{"args":{"additionalProperty":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/commands/example/resolve \ --header 'Content-Type: application/json' \ --cookie supacloud_session=<supacloud_session> \ --data '{ "args": { "additionalProperty": "example" } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Command word or alias
Request Bodyrequired
Section titled “Request Bodyrequired”The body of POST /api/commands/{word}/resolve and .../invoke: the partial arg
bindings supplied so far (param name -> value). Absent = a bare invocation; the
resolver/invoker fills in / asks for the rest.
object
Partial argument bindings keyed by param name.
object
Examplegenerated
{ "args": { "additionalProperty": "example" }}Responses
Section titled “Responses”Every required param is bound + valid; input is the resolved invocation.
object
A replayable command invocation (ADR §2.2): word + resolved arg bindings.
object
Resolved arg bindings (param name -> chosen value).
object
A required param is still missing; present options (possibly empty).
object
A selectable option for a parameter (ADR §2.2 Choice). Wire mirror of
[crate::services::command_registry::options::Choice].
object
A supplied value failed validation.
object
Example
{ "status": "ready"}Authentication required
Permission denied
No such command
Structured server error