crewai_define_agent
Define a new agent for a CrewAI project by specifying its name, role, goal, and backstory. Optionally assign tools, LLM, and additional options.
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_name": "<project_name>",
"agent_name": "<agent_name>",
"role": "<role>",
"goal": "<goal>",
"backstory": "<backstory>"
},
"name": "crewai_define_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | ||
| agent_name | Yes | ||
| role | Yes | ||
| goal | Yes | ||
| backstory | Yes | ||
| llm | No | ||
| options | No | ||
| tools | No | ||
| add_to_crew_py | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |