diff_runs
Compare two Metaflow runs to identify changes in source code, parameters, environment, and metadata. Helps debug regressions and investigate run differences.
Instructions
Compare two Metaflow runs: source code, parameters, environment, and system metadata.
Produces a structured diff showing what changed between two runs of the same flow. Useful for debugging regressions, understanding why a run succeeded when another failed, or auditing parameter/dependency changes.
Sections in the diff:
code: unified diff of the source code snapshots
metadata: tags, system tags (metaflow version, runtime, etc.)
parameters: flow parameter values
environment: conda/pypi package additions, removals, and version changes
Args: source_pathspec: Run pathspec for the "before" run (e.g. "MyFlow/100"). target_pathspec: Run pathspec for the "after" run (e.g. "MyFlow/101").
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": {
"source_pathspec": "<source_pathspec>",
"target_pathspec": "<target_pathspec>"
},
"name": "diff_runs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_pathspec | Yes | ||
| target_pathspec | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |