Aller au contenu

resolve_prompt

Resolve the single best-matching prompt for a section and get its template ready to use, with catalogue variables filled in. Use this when you want THE prompt for a job rather than a list to pick from. section is required; narrow further with subsection / tier / phase, and pass language / namespace / count to shape the resolved variables. Read-only, free (0 credits). Returns {prompt:{key, i18n_key, template, resolved, variables_used}}; errors 404 if nothing matches.

NomTypeDescription
project_uuidstringoptionnelProject UUID. Required when multiple projects are configured (SONENTA_PROJECTS); defaults to the single configured project otherwise.
sectionstringrequisSection to resolve a prompt for (REQUIRED).
subsectionstringoptionnelOptional subsection to narrow the match.
tierstringoptionnelOptional tier to narrow the match.
phasestringoptionnelOptional phase to narrow the match.
languagestringoptionnelOptional language code used when filling template variables.
namespacestringoptionnelOptional namespace used when filling template variables.
countintegeroptionnelOptional count used by count-dependent template variables (default 0).
{
"tool": "resolve_prompt",
"arguments": {
"section": "<section>"
}
}