MCPcopy Index your code
hub / github.com/coder/coder / executeDesktopAction

Method executeDesktopAction

coderd/x/chatd/chattool/computeruse.go:310–322  ·  view source on GitHub ↗
(
	ctx context.Context,
	conn workspacesdk.AgentConn,
	action workspacesdk.DesktopAction,
)

Source from the content-addressed store, hash-verified

308}
309
310func (*computerUseTool) executeDesktopAction(
311 ctx context.Context,
312 conn workspacesdk.AgentConn,
313 action workspacesdk.DesktopAction,
314) (fantasy.ToolResponse, bool) {
315 _, err := conn.ExecuteDesktopAction(ctx, action)
316 if err != nil {
317 return fantasy.NewTextErrorResponse(
318 fmt.Sprintf("action %q failed: %v", action.Action, err),
319 ), true
320 }
321 return fantasy.ToolResponse{}, false
322}
323
324func (*computerUseTool) desktopAction(
325 action string,

Callers 2

runOpenAIComputerUseMethod · 0.95

Calls 1

ExecuteDesktopActionMethod · 0.65

Tested by

no test coverage detected