Install agents

installAgentForProjects(input: InstallProjectAgentForSelectedProjectsInput!): [ProjectAgentCard!]!

Requires project.agents.write.

Arguments

Input fields

input

InstallProjectAgentForSelectedProjectsInput

FieldTypeRequiredDescription
selectedProjectReferences[String!]!Yes
agentIdString!Yes
relationStringNoRelation of each agent access grant. The selection expands into one explicit grant per project; the agent is not copied.

Response

Returns [ProjectAgentCard!]!. Open the type for its fields and nested types.

FieldType
avatarUrlString
idID!
nameString!
descriptionString
providerJSON!
versionString!
capabilitiesJSON!
defaultInputModes[String!]!

All fields of ProjectAgentCard.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
mutation InstallAgentForProjects($input: InstallProjectAgentForSelectedProjectsInput!) {  installAgentForProjects(input: $input) {    id    name    avatarUrl    canRun    capabilities  }}
variables.json
{  "input": {    "selectedProjectReferences": [],    "agentId": "example"  }}