Create or update a project
project_upsertCreate a project, or update one you own. One owner may own many isolated projects; a project archive holds desensitised fields only (type, stage, capability ids, tag preferences, confirmed used-tool ids, explicitly rejected tool ids) — never send a project name, code, raw chat, path or free text (dropped and reported as dropped_fields). Needs the followup consent scope (consent_update first). Omit project_id to create (returns project_id + a project_token shown once); pass expected_version to guard concurrent updates (version_conflict on mismatch); rotate_token:true (owner credential only) invalidates all old project tokens and returns a new one.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "project_upsert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| stage | No | ||
| project_id | No | ||
| preferences | No | ||
| capabilities | No | ||
| rotate_token | No | ||
| tools_in_use | No | ||
| rejected_tools | No | ||
| expected_version | No |