Skip to content

[plugins] Pass remote IDs through request_plugin_install - #31713

Closed
adaley-openai wants to merge 1 commit into
mainfrom
dev/adaley/request-plugin-install-remote-ids
Closed

[plugins] Pass remote IDs through request_plugin_install#31713
adaley-openai wants to merge 1 commit into
mainfrom
dev/adaley/request-plugin-install-remote-ids

Conversation

@adaley-openai

Copy link
Copy Markdown
Contributor

Summary

  • Allow request_plugin_install to accept a non-empty remote plugin ID up to 256 bytes when the remote-plugin feature is enabled, even when that ID is absent from recommendation candidates.
  • Pass the ID through the existing elicitation path without making a catalog or plugin-service request, and mark an accepted direct request complete.
  • Keep the request tool available when endpoint recommendations are empty and tell the model not to guess remote IDs.

Notes

Validation

  • just test -p codex-core request_plugin_install — 17 passed.
  • just fix -p codex-core
  • just fmt
  • git diff --check

],
format!(
"# Request plugin/connector install\n\nUse this tool only after `{LIST_AVAILABLE_PLUGINS_TO_INSTALL_TOOL_NAME}` returns a plugin or connector that exactly matches the user's explicit request.\n\nDo not use it for adjacent capabilities, broad recommendations, or tools that merely seem useful. Pass the returned `tool_type` through directly, and pass the returned `id` as `tool_id`.\n\nIMPORTANT: DO NOT call this tool in parallel with other tools."
"# Request plugin/connector install\n\nUse this tool only after `{LIST_AVAILABLE_PLUGINS_TO_INSTALL_TOOL_NAME}` returns a plugin or connector that exactly matches the user's explicit request, or another tool returns an exact remote plugin id relevant to that request.\n\nDo not use it for adjacent capabilities, broad recommendations, or tools that merely seem useful. Do not guess remote plugin ids. For discoverable tools, pass the returned `tool_type` and `id` through directly. For a remote plugin, pass its exact id as `tool_id` and use `tool_type=\"plugin\"`.\n\nIMPORTANT: DO NOT call this tool in parallel with other tools."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When testing, I'm seeing this:
image

I think this behavior is a bit too restrictive. Maybe changing the wording here so it removes some of the details around another tool needing to return the plugin id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants