morpheus_chat
Send OpenAI-style messages to generate chat completions, optionally with tool calls, returning assistant content and tool calls as JSON.
Instructions
Call Morpheus OpenAI-compatible chat/completions.
Pass messages (OpenAI shape). Model defaults to MORPHEUS_MODEL_DEFAULT when omitted. Optional tools / tool_choice for models that support tool_calls. Returns JSON with assistant content and tool_calls if any.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "morpheus_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| tools | No | ||
| messages | Yes | ||
| max_tokens | No | ||
| temperature | No | ||
| tool_choice | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |