MCPcopy Create free account
hub / github.com/Xenov-X/csbot / executeScreenshot

Method executeScreenshot

workflow/executor.go:1150–1158  ·  view source on GitHub ↗

executeScreenshot captures a screenshot

(ctx context.Context, client *csclient.Client, beaconID string)

Source from the content-addressed store, hash-verified

1148
1149// executeScreenshot captures a screenshot
1150func (e *Executor) executeScreenshot(ctx context.Context, client *csclient.Client, beaconID string) (string, error) {
1151 // Use spawn method by default (simpler, no PID/arch required)
1152 resp, err := client.ScreenshotSpawn(ctx, beaconID)
1153 if err != nil {
1154 return "", err
1155 }
1156
1157 return e.waitForOutput(ctx, client, resp.TaskID)
1158}
1159
1160// --- File & Directory Operation Handlers ---
1161

Callers 1

executeActionMethod · 0.95

Calls 1

waitForOutputMethod · 0.95

Tested by

no test coverage detected