Lists the commands, skills and agents the session's tool reports.
const url = 'https://example.com/v1/m/sessions/runs/example/commands';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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/v1/m/sessions/runs/example/commands \ --header 'Authorization: Bearer <token>'Lists the commands, skills and agents the session’s tool reports.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Path parameter ref.
Header Parameters
Section titled “ Header Parameters ”Target tenant id; required when the principal can act in more than one tenant.
Responses
Section titled “ Responses ”The commands, skills and agents the session’s tool reports
object
object
How the tool shows the arguments, when it does.
One line, as the tool wrote it.
Native invocation when it is not /name, without trailing space (Codex skills use $name).
A command is a slash command or a skill; both are typed as /name.
What follows the slash, without it.
Where the command comes from, when the tool says so.
False when the tool reported nothing: the session is not live on this node, or its tool is not read yet.
True when the last ask of the tool failed and the commands are what it reported before.
The session’s tool; empty when the session is not live on this node.
Example
{ "commands": [ { "kind": "command", "source": "" } ]}Bad request
object
Example generated
{}Unauthenticated
object
Example generated
{}Forbidden
object
Example generated
{}Not found
object
Example generated
{}The session’s launch is no longer its authority, or its work lease needs a fence
object
Example generated
{}Rate limited
object
Example generated
{}The tool refused or could not be asked for its commands
object
Example generated
{}The tool did not report its commands in time
object
Example generated
{}