extract

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package extract converts raw MCP tool arguments into typed Go values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntryArgs

func EntryArgs(
	args map[string]interface{},
) (string, string, error)

EntryArgs extracts required type/content from MCP args.

Parameters:

  • args: MCP tool arguments

Returns:

  • string: extracted entry type
  • string: extracted content string
  • error: non-nil if type or content is missing

func Opts

func Opts(args map[string]interface{}) handler.EntryOpts

Opts builds EntryOpts from MCP tool arguments.

Parameters:

  • args: MCP tool arguments with optional entry fields

Returns:

  • handler.EntryOpts: populated options struct

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL