diff --git a/sdk/guides/plugins.mdx b/sdk/guides/plugins.mdx index 74099f541..e00fc2340 100644 --- a/sdk/guides/plugins.mdx +++ b/sdk/guides/plugins.mdx @@ -60,10 +60,13 @@ The manifest file `plugin-name/.plugin/plugin.json` defines plugin metadata: "description": "Code quality tools and workflows", "author": "openhands", "license": "MIT", - "repository": "https://github.com/example/code-quality-plugin" + "repository": "https://github.com/example/code-quality-plugin", + "entry_command": "check" } ``` +The optional `entry_command` field specifies the default command name to invoke when launching the plugin. This should match a command name from the `commands/` directory (e.g., `"check"` for `commands/check.md`). Access it via `plugin.entry_slash_command` which returns the full slash command (e.g., `/code-quality:check`) or `None` if not specified. + ### Skills Skills are defined in markdown files with YAML frontmatter: @@ -165,6 +168,10 @@ Brief explanation on how to use a plugin with an agent. if plugin.mcp_config: servers = plugin.mcp_config.get("mcpServers", {}) print(f"MCP servers: {list(servers.keys())}") + + # Entry command + if plugin.entry_slash_command: + print(f"Entry command: {plugin.entry_slash_command}") ```