Update agent. Requires project.agents.write.
Arguments
inputUpdateProjectAgentInput!requiredinput.projectReferenceStringinput.agentIdString!requiredinput.sourceTargetKindStringinput.targetBranchIdIDinput.idStringinput.nameStringinput.descriptionStringinput.modelStringinput.systemPromptStringinput.thinkingJSONinput.temperatureFloatinput.maxStepsIntinput.allowedModels[String!]input.skillIds[String!]input.skillSelectionProjectAgentSkillSelectionInputinput.skillsJSONinput.allToolsEnabledBooleaninput.toolIds[String!]Project tools, platform tools, and integration catalog tools returned by get_integration. Use exact names from the agent tool references search.
input.toolsJSONinput.toolLoadingStringinput.toolResultContextJSONinput.knowledgeJSONinput.providerToolIds[String!]Provider-native model tools only. Never put tool references from tool_ids here.
input.suggestionsJSONinput.avatarJSONinput.avatarUrlStringinput.validateGeneratedAvatarBooleaninput.securityEnabledBoolean
Responses
mutation UpdateAgent($input: UpdateProjectAgentInput!) { updateAgent(input: $input) { id name description model systemPrompt thinking temperature maxSteps allowedModels skillIds skillSelection { kind skillIds } skillResolution { policy skillIds sourcePaths unresolvedEntryIndexes catalogStatus evidenceScope } skills allToolsEnabled toolIds tools toolLoading toolResultContext knowledge providerToolIds suggestions avatar avatarUrl securityEnabled sourcePath source editMode sourceOnlyReasons }}{ "data": { "updateAgent": { "id": "string", "name": "string", "description": "string", "model": "string", "systemPrompt": "string", "thinking": {}, "temperature": 0, "maxSteps": 0, "allowedModels": [ "string" ], "skillIds": [ "string" ], "skillSelection": { "kind": "string", "skillIds": [ "string" ] }, "skillResolution": { "policy": {}, "skillIds": [ "string" ], "sourcePaths": {}, "unresolvedEntryIndexes": [0], "catalogStatus": "string", "evidenceScope": "string" }, "skills": {}, "allToolsEnabled": false, "toolIds": [ "string" ], "tools": {}, "toolLoading": "string", "toolResultContext": {}, "knowledge": {}, "providerToolIds": [ "string" ], "suggestions": {}, "avatar": {}, "avatarUrl": "https://example.com", "securityEnabled": false, "sourcePath": "string", "source": "string", "editMode": "string", "sourceOnlyReasons": [ "string" ] } }}The ProjectAgentDocument! in data.updateAgent.