Skip to content

fix: include full recipe parameter details in load/discovery output#9233

Open
DOsinga wants to merge 1 commit into
mainfrom
fix/7288-recipe-param-details
Open

fix: include full recipe parameter details in load/discovery output#9233
DOsinga wants to merge 1 commit into
mainfrom
fix/7288-recipe-param-details

Conversation

@DOsinga
Copy link
Copy Markdown
Collaborator

@DOsinga DOsinga commented May 14, 2026

When loading or discovering subrecipes, the load tool and source discovery only exposed parameter names (e.g., (params: foo, bar)). This left the agent without the type, requirement, description, default, or select options it needs to correctly populate the parameters field when delegating.

This change adds a format_parameters helper that renders full parameter metadata:

Parameters:
  - repo_url (string, required): The repository URL to analyze
  - depth (number, optional, default: "3"): How deep to scan
  - format (select, required, options: [json, markdown]): Output format

This is included in both:

  • Source discovery — the description shown when listing available sources
  • Load content — the content injected into context when a source is loaded

Fixes #7288

When loading or discovering subrecipes, include parameter type, requirement,
description, default values, and select options — not just parameter names.
This gives the agent the context it needs to correctly populate the
parameters field when delegating to parameterized recipes.

Fixes #7288

Signed-off-by: Douwe Osinga <douwe@squareup.com>
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.

Enhancement: Include recipe parameter details within generated load details

1 participant