Get what an agent's skills cost the prompt
Reports how the agent’s saved skills will appear in the prompt of its next session: the skills in the order the model reads them, which of them the model’s budget leaves room to describe, and how many characters of that budget they use. It answers for the agent’s latest version, with the model and built-in integrations a session of that version starts with: the budget is sized from that model’s context window, and an agent with built-in integrations lists the skill the platform adds ahead of its own. If the model’s context window cannot be read, the response uses the smallest budget and says so in warnings instead of failing. An agent whose model is not available on this deployment is a 400, as starting a session of it would be; a soft-deleted or unknown agent is a 404.
Authorizations
A Recursion API key, created in the console under API keys.
Headers
Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.
1Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.
1Path Parameters
Agent id (UUID) as returned by managedAgentsCreateAgent or managedAgentsListAgents.
Response
What a set of skill attachments costs the model's prompt on every turn, and which skills the budget has reduced to a bare name. A skill listed without its description is still activatable but is unlikely to be chosen, because the description is the only signal the model has for choosing it.
What a set of skill attachments costs the model's prompt on every turn, and which skills the budget has reduced to a bare name. A skill listed without its description is still activatable but is unlikely to be chosen, because the description is the only signal the model has for choosing it.
Characters of prompt the model's budget allows the skill list each turn.
-9007199254740991 <= x <= 9007199254740991Every skill the prompt lists, in the order the model reads them.
Characters the rendered catalog actually occupies. Measured from the same pass that produces the prompt, not estimated.
-9007199254740991 <= x <= 9007199254740991What resolving and rendering this set cost: unresolvable references, truncated descriptions, and skills reduced to a name.