media

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandEnv

type CommandEnv func(extra map[string]string) ([]string, error)

type ControlPath

type ControlPath struct {
	Abs     string
	Display string
}

type Result

type Result = toolcore.Result

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(cfg config.Config, ws *workspace.Workspace, commandEnv CommandEnv) *Service

func (*Service) FilePublish

func (s *Service) FilePublish(ctx context.Context, args map[string]any) (Result, error)

func (*Service) PublishBrowserScreenshot added in v0.7.4

func (s *Service) PublishBrowserScreenshot(ctx context.Context, png []byte, retentionSeconds int) (map[string]any, error)

PublishBrowserScreenshot 只负责把 Go CDP Service 返回的 PNG 发布为现有 Artifact。 浏览器包因此无需了解公开 URL、签名或媒体存储实现。

func (*Service) ViewImage

func (s *Service) ViewImage(ctx context.Context, args map[string]any) (Result, error)

type ToolError

type ToolError = toolcore.ToolError

Jump to

Keyboard shortcuts

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