Get an address to add files to a project
add_project_sourceAn upload address for a project's reference files: a brief, a spec, a plan, mockups or notes the owner wants CodeGene to keep and build from (each up to maxBytes). PUT each file to uploadUrl with ?name= before expiresAt (the curl field); add ¬e= to say why, &type= when the extension does not say the type, &source= to add a new version of a file already kept. Each file is kept for as long as the project exists, as given by the person through you; every replacement is a new version and nothing is overwritten. Its words go into the project's knowledge (the answer's knowledgeId, for read_knowledge), so later changes use them. The same bytes again add nothing. Treat uploadUrl like a password until it expires.
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": {
"project_id": "<project_id>"
},
"name": "add_project_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project's id (prj_...) from list_projects. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |