Run Prompt Skill
Fill a saved prompt template with your values and run it; returns text, or a Dictionary for JSON skills.
Command in the Prompt Skills toolkit · id ooa.ai_skills/run · 15 inputs (1 required), 7 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Skill | String | Yes | Skill name (file name in ai-skills without .json). | |
| Values | Dictionary | No | Values for the skill's placeholders, written $name$ in its prompt. | |
| Connection | String | No | Model Connection to use instead of the skill's own provider and model. | |
| API key | Credential | No | API key or access token from the vault (not needed for some self-hosted endpoints). For AWS Bedrock and AWS SageMaker: the AWS secret access key (or ACCESS_KEY_ID:SECRET). For Google Vertex AI: a service-account JSON key or an access token. | |
| Model | String | No | Override the skill's model. | |
| Endpoint address | String | No | Endpoint; required for Azure OpenAI, Vertex AI (https://REGION-aiplatform.googleapis.com/v1/projects/PROJECT/locations/REGION) and self-hosted models (for a TGI server, e.g. http://tgi-host:8080/v1). | |
| AWS access key ID | Credential | No | AWS Bedrock and AWS SageMaker only: AWS access key id from the vault (api_key then holds the secret access key). | |
| AWS region | String | No | AWS Bedrock and AWS SageMaker only: AWS region, e.g. eu-west-1. Overrides the skill's "region". | |
| Temperature | Number | No | Override the skill's temperature; the skill's own (or 0) when empty. | |
| Maximum tokens | Number | No | Override the skill's maximum answer length; the skill's own (or 2000) when empty. | |
| Fail on error | Boolean | No | true | Stop the agent when the skill fails; when off, success is false and error says why. |
| Timeout (seconds) | Number | No | 0 | Seconds to wait for the model; 180 when 0. |
| Knowledge index | File | No | A Knowledge Q&A index (built with Build index) whose best passages go to the model with the prompt; overrides the skill's own "knowledge". | |
| Top k | Number | No | How many passages of the index the model gets; the skill's own (or 4) when empty. | |
| Files | List | No | Documents given to the model with the prompt (text, Markdown, HTML, CSV, JSON, XML, Word, PowerPoint or PDF), e.g. an invoice to check. |
Outputs
| Output | Type | What it is |
|---|---|---|
| text | String | The answer as text. |
| json | Any | The answer parsed as JSON, for skills with output json. |
| success | Boolean | True when the skill ran; false only when fail_on_error is off and it failed. |
| error | String | What went wrong, when success is false. |
| input_tokens | Number | Tokens in the request. |
| output_tokens | Number | Tokens in the answer. |
| sources | List | The knowledge passages given to the model (n, source, passage, score, text); empty without a knowledge index. |