Documentation
¶
Index ¶
- Constants
- func BrowserTools(s *Session) []mcp.Tool
- func DefaultUserDataDir(home string) string
- type ActionRequest
- type ActionResult
- type CDPDriver
- func (d *CDPDriver) Act(ctx context.Context, req ActionRequest, target Target) (ActionResult, error)
- func (d *CDPDriver) Close() error
- func (d *CDPDriver) Eval(ctx context.Context, expression string) (any, error)
- func (d *CDPDriver) Shutdown(ctx context.Context) error
- func (d *CDPDriver) Snapshot(ctx context.Context, url string, wait time.Duration) ([]byte, error)
- func (d *CDPDriver) TargetID() string
- type CDPOptions
- type Driver
- type Session
- type Target
Constants ¶
View Source
const ( ToolSnapshot = "browser_snapshot" ToolAct = "browser_act" ToolEval = "browser_eval" ToolRecover = "browser_recover" )
Variables ¶
This section is empty.
Functions ¶
func BrowserTools ¶
func DefaultUserDataDir ¶
Types ¶
type ActionRequest ¶
type ActionResult ¶
type CDPDriver ¶
type CDPDriver struct {
// contains filtered or unexported fields
}
func NewCDPDriver ¶
func NewCDPDriver(parent context.Context, opts CDPOptions) (*CDPDriver, error)
func (*CDPDriver) Act ¶
func (d *CDPDriver) Act(ctx context.Context, req ActionRequest, target Target) (ActionResult, error)
func (*CDPDriver) Shutdown ¶
Shutdown closes the attached browser process. Ordinary Close only releases this driver context; direct CLI mode deliberately leaves its detached Chrome alive between snapshot and act commands until `browse close` calls Shutdown.
type CDPOptions ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) LoadTargets ¶
func (*Session) TargetsSnapshot ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
benchmarks
|
|
|
counttext
command
Counts stdin with the Caveman offline o200k_base counter.
|
Counts stdin with the Caveman offline o200k_base counter. |
|
toolcatalog/count
command
Counts an MCP tool catalog's token cost with the same method the in-repo budget test uses: compact JSON of [{name, description, inputSchema}] counted by the Caveman offline o200k_base counter.
|
Counts an MCP tool catalog's token cost with the same method the in-repo budget test uses: compact JSON of [{name, description, inputSchema}] counted by the Caveman offline o200k_base counter. |
|
cmd
|
|
|
caveman-browse
command
|
Click to show internal directories.
Click to hide internal directories.