Agents

Attach tool

Attach a tool to an agent without resending the list.

POSThttps://app.elunos.ai/api/v1/spaces/{space}/agents/{agent}/tools/{tool}

Adds a tool to the agent's tool_ids. Unlike Update agent, you do not have to send the other tools along. If the tool is already attached, nothing changes.

Path parameters

spacestringPflicht

Slug of the space, e.g. `praxis-mueller`. Returned by `GET /spaces`.

agentuuidPflicht

ID of the agent.

tooluuidPflicht

ID of the tool.

Example

curl -X POST https://app.elunos.ai/api/v1/spaces/praxis-mueller/agents/0199a3c2-7d4e-7b21-9f3a-2c5e8d1b4a70/tools/0199a3c4-1f2a-7c55-8e10-6b7d9a3e2f11 \
  -H "Authorization: Bearer np_xxxxxxxx"

Response

{
  "data": {
    "id": "0199a3c2-7d4e-7b21-9f3a-2c5e8d1b4a70",
    "tool_ids": [
      "0199a3c4-1f2a-7c55-8e10-6b7d9a3e2f11"
    ],
    "…": "…"
  }
}

The agent after attaching. Remember to publish.

An agent calls whatever it can reach. Attach only the tools it really needs, and describe in its behavior when to use them.