Genkit MCP

Official
Apache 2.0
128
1,166

sampleLLM

Samples from an LLM using MCP's sampling feature

Input Schema

NameRequiredDescriptionDefault
maxTokensNoMaximum number of tokens to generate
promptYesThe prompt to send to the LLM

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "maxTokens": { "default": 100, "description": "Maximum number of tokens to generate", "type": "number" }, "prompt": { "description": "The prompt to send to the LLM", "type": "string" } }, "required": [ "prompt" ], "type": "object" }