Recipe source files
get_recipe_sourcesFetch the repo files a recipe change may edit for gates, env, or routes, with content and SHAs. Use these SHAs as baseSha in propose_recipe_change to detect conflicts.
Instructions
Return the repo files a recipe change may edit for one part of the recipe: element gates (mushi.recipe.json budgets and cadence), env (.env.example declarations) or routes (the inventory file). Each file has { path, exists, content, sha, writable, reason }, read from the default branch head; a file over 512 KB or one containing something shaped like a secret has content null. Pass each sha as baseSha to propose_recipe_change so a file that changed since is refused. Optional projectId. Returns { ok, element, branch, headSha, files } or { ok: false, reason }. Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"element": "<element>"
},
"name": "get_recipe_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element | Yes | gates (mushi.recipe.json budgets), env (.env.example) or routes (the inventory file) | |
| projectId | No | Project UUID — defaults to the server-configured project when omitted (`project_id` is accepted too.) |