Skip to content

[FEATURE]: add an open tool for surfacing files and URLs #24890

@Marxist-Leninist

Description

@Marxist-Leninist

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Add a built-in open tool that lets an agent surface a local file, folder, or http(s) URL to the user through the operating system's default handler.

This is useful when an agent produces a human-facing artifact and needs to show it without inventing platform-specific shell commands. Examples include opening a generated HTML report, revealing a downloaded file in the file manager, or opening a local dev URL after startup.

Suggested behavior:

  • support local paths, file:// URLs, and http(s) URLs
  • resolve relative local paths from the project directory
  • refuse unsupported schemes
  • ask for an open permission before launching the OS handler
  • use platform-native launchers (rundll32/Explorer, open, xdg-open)
  • return structured metadata for delivered/not-delivered status

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions