chat_complete
Generate OpenAI-style chat completions using the host agent's own model via MCP sampling—no API key needed.
Instructions
Generate a chat completion from an OpenAI chat-completions-shaped request. The completion is produced by the host agent's own model via MCP sampling. No API key is used or needed: the connected agent is the model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model alias; agent-default means the host's own model. | agent-default |
| messages | Yes | Chat messages; system roles become the system prompt. | |
| max_tokens | No | Maximum tokens to generate. | |
| temperature | No | Sampling temperature, if the host honors it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |