mcpHosted AI, explicit consent
Run skill
tools/call
Run a Pipeline-owned first-party skill through Pipeline hosted inference. This consumes the workspace BYOK model provider, not the coding agent subscription. For execution inside Claude Code, Codex, Hermes, or another external agent, claim an Agent Teams work order instead. Returns a hosted run summary including the runId for get-agent-run.
Parameters
workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
skillNamerequired
string
The skill name from frontmatter (e.g. dream-one-hundred, cold-email-write).
payload
object
Arbitrary input passed to the skill.
agentRole
string
Optional: pin which agent role context to use.
scout | researcher | icp | strategist | writer | campaign_builder | closer | coach
allowHostedAi
boolean
Must be true when this operation uses Pipeline hosted inference.
Example
MCP tools/calljson
{"jsonrpc": "2.0","id": 1,"method": "tools/call","params": {"name": "run-skill","arguments": {"skillName": "example","allowHostedAi": true}}}
Response
Success response schemajson schema
{"type": "object","properties": {"id": {"type": "string"},"status": {"type": "string"},"terminationReason": {"type": "string"},"toolCalls": {"type": "number"},"tokensUsed": {"type": "number"},"skipped": {"type": "boolean"},"reason": {"type": "string"},"roleDispatched": {"type": "string"}},"required": ["id","status","terminationReason","toolCalls","tokensUsed"]}
JSON-RPC errors
- -32602
- Invalid parameters. Field-level details are returned in the JSON-RPC error data.
- -32001
- Authentication or hosted AI consent is required.
- -32003
- Workspace access is denied.
- -32029
- The request was rate limited.