tools

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(server *mcp.Server, deps *Deps)

Types

type ChannelPeer

type ChannelPeer interface {
	Peer
	InputChannel() tg.InputChannelClass
}

ChannelPeer is a peer that supports channel-specific operations.

type Deps

type Deps struct {
	Resolver PeerResolver
	API      *tg.Client
	ACL      *acl.Checker
	Limits   config.LimitsConfig
	Media    config.MediaConfig
}

Deps holds all dependencies for tool handlers.

type Peer

type Peer interface {
	InputPeer() tg.InputPeerClass
}

Peer represents a resolved Telegram peer used by tool handlers.

type PeerResolver

type PeerResolver interface {
	ResolvePeerForTool(ctx context.Context, ref string) (Peer, acl.PeerIdentity, error)
}

PeerResolver resolves chat reference strings to Telegram peers.

Jump to

Keyboard shortcuts

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