Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "system/image"
Name identifies this service for MCP routing.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadImageInput ¶
type ReadImageInput struct {
URI string `json:"uri,omitempty"`
Path string `json:"path,omitempty"`
MaxWidth int `json:"maxWidth,omitempty"`
MaxHeight int `json:"maxHeight,omitempty"`
MaxBytes int `json:"maxBytes,omitempty"`
Format string `json:"format,omitempty"`
// IncludeData controls whether dataBase64 is returned in the tool response.
// When false (default), the tool writes the encoded image to EncodedURI and
// omits dataBase64 to keep tool output small.
IncludeData bool `json:"includeData,omitempty"`
// DestURL optionally specifies where to write the encoded image (file://...).
DestURL string `json:"destURL,omitempty"`
}
type ReadImageOutput ¶
type ReadImageOutput struct {
URI string `json:"uri"`
Encoded string `json:"encodedURI,omitempty"`
Path string `json:"path"`
Name string `json:"name,omitempty"`
MimeType string `json:"mimeType"`
Width int `json:"width"`
Height int `json:"height"`
Bytes int `json:"bytes"`
Base64 string `json:"dataBase64,omitempty"`
}
type Service ¶
type Service struct{}
func (*Service) CacheableMethods ¶ added in v0.1.7
CacheableMethods declares which methods produce cacheable outputs.
func (*Service) Methods ¶
func (s *Service) Methods() svc.Signatures
Click to show internal directories.
Click to hide internal directories.