MCP Reference
agent_run_create
Fire an Agent Run Manually
Beschreibung
Run a routine, or run an agent with a supplied prompt. A routine uses its own agent and prompt.
Zugriff
Zugriffsprofil: gated. Module: none.
Die Freigabe im Profil ersetzt keine Account-, Workspace- oder Rollenberechtigung.
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
account_id |
string | Ja | |
prompt |
string | Nein | Required for an ad-hoc run. |
agent_id |
string / null | Nein | Agent prefix id (agnt_…). Required unless a schedule with a bound agent is given. |
agent_schedule_id |
string / null | Nein | Schedule prefix id (asch_…). Omit for an ad-hoc run. |
Eingabeschema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"account_id": {
"type": "string"
},
"prompt": {
"type": "string",
"description": "Required for an ad-hoc run."
},
"agent_id": {
"type": [
"string",
"null"
],
"description": "Agent prefix id (agnt_…). Required unless a schedule with a bound agent is given."
},
"agent_schedule_id": {
"type": [
"string",
"null"
],
"description": "Schedule prefix id (asch_…). Omit for an ad-hoc run."
}
},
"required": [
"account_id"
],
"type": "object"
}
Ausgabeschema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"agent_run": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status": {
"type": "string"
},
"agent_schedule_id": {
"type": [
"string",
"null"
]
},
"agent_trigger_id": {
"type": [
"string",
"null"
]
},
"agent_id": {
"type": [
"string",
"null"
]
},
"scheduled_for": {
"type": [
"string",
"null"
]
},
"started_at": {
"type": [
"string",
"null"
]
},
"finished_at": {
"type": [
"string",
"null"
]
},
"skip_reason": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"url": {
"type": "string"
},
"prompt_snapshot": {
"type": "string"
},
"result": {
"type": [
"string",
"null"
]
},
"error": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"status",
"prompt_snapshot",
"created_at",
"url"
]
}
},
"required": [
"agent_run"
],
"type": "object"
}