Skip to content
gist.link ↗

moveAgent

Mutation Agent Workforce API — POST https://agentworkforce.api.gist.link/graphql

Persist an agent’s canvas position.

agentworkforce:mutation:moveAgent

The calling IAM key must hold this permission (or a wildcard that covers it: agentworkforce:mutation:* or agentworkforce:*) and the access token must have been minted with audience=agentworkforce. See Permissions.

type Mutation {
moveAgent(uuid: ID!, x: Float!, y: Float!): Agent!
}
Argument Type Required Description
uuid ID! Yes —
x Float! Yes —
y Float! Yes —

Agent! — see the Agent Workforce types reference.

Terminal window
curl https://agentworkforce.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation MoveAgent($uuid: ID!, $x: Float!, $y: Float!) { moveAgent(uuid: $uuid, x: $x, y: $y) { uuid workforceUuid parentUuid role displayName color systemPrompt modelProvider } }",
"variables": {
"uuid": "01a01234-abcd-7000-9000-0123456789ab",
"x": 10.5,
"y": 10.5
}
}
JSON