Write a repo's launchpad file
write_repo_contributionValidate and write a repo's .cohors/repo.json as a full replacement, returning all errors at once and writing nothing when invalid. Read the current file first to preserve tasks and flows.
Instructions
Validate and write one repo's .cohors/repo.json (its flows, agents, tasks). REPLACES the whole document: read the current one with launchpad first and pass back everything you mean to keep, especially tasks the user is part-way through. Writes nothing when invalid and returns every error at once. Declare a flow only when it adds what detection cannot infer (a label, port, primary, composite command, cwd) — an empty flows array is a correct answer. Never set a task done without evidence. Nothing machine-specific: this file is committed. Also gitignores .cohors/local.json. Requires --allow-launchpad; dry_run validates without it.
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": {
"repo": "<repo>",
"name": "<name>"
},
"name": "write_repo_contribution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | ||
| name | Yes | Display name. | |
| repo | Yes | Repo id, name/alias, or path (must be inside the fleet). | |
| flows | No | ||
| group | No | Free text; groups repos on the launchpad. | |
| links | No | ||
| tasks | No | ||
| agents | No | ||
| dry_run | No | Validate and report without writing (works without --allow-launchpad). | |
| summary | No | One line: what this repo IS. | |
| generatedFrom | No | Short SHA of the commit you read, so staleness can be shown. |