# update_agent

> AirBuild का MCP टूल जो किसी एजेंट की प्रोफ़ाइल बदलता है: उसका नाम, role, bio, persona, निर्देश या मॉडल।

Source: https://air.build/hi/docs/mcp-tools/update_agent/

`update_agent` किसी एजेंट की प्रोफ़ाइल बदलता है: उसका नाम, role, bio, persona, निर्देश या मॉडल। सिर्फ़ वही भेजें जो बदलता है। छोड़ा गया फ़ील्ड वैसा ही रहता है; `null` उसे उसके टेम्पलेट वाले मान पर लौटा देता है। एजेंट का नाम बदलने पर उसके डायरेक्ट मैसेज का नाम भी बदल जाता है। `@` handle (`agentId`) बदला नहीं जा सकता, और यह टूल किसी एजेंट को चालू या बंद नहीं करता और न उसे host बनाता है: ये काम ऐप में होते हैं। उसकी फ़ोटो [start_picture_upload](https://air.build/hi/docs/mcp-tools/start_picture_upload/) से सेट होती है। टीम का कोई भी व्यक्ति इसे कॉल कर सकता है।

| रीड-ओनली | डिस्ट्रक्टिव | आइडेम्पोटेंट |
| --- | --- | --- |
| नहीं | नहीं | हाँ |

## इनपुट

`teamId` और `agentId` के अलावा कम से कम एक फ़ील्ड दें।

| इनपुट | टाइप | ज़रूरी | डिफ़ॉल्ट | यह क्या करता है |
| --- | --- | --- | --- | --- |
| `teamId` | string (UUID) | हाँ | — | टीम, [list_teams](https://air.build/hi/docs/mcp-tools/list_teams/) से |
| `agentId` | string | हाँ | — | एजेंट, [list_team_members](https://air.build/hi/docs/mcp-tools/list_team_members/) से |
| `displayName` | string या `null` | नहीं | बिना बदलाव | उसका नाम; `null` टेम्पलेट वाले पर लौटाता है |
| `role` | string या `null` | नहीं | बिना बदलाव | एक लाइन: वह टीम में क्या करता है |
| `bio` | string या `null` | नहीं | बिना बदलाव | वह किन चीज़ों को देखता है; टीम इससे तय करती है कि संदेश कौन लेगा |
| `persona` | string या `null` | नहीं | बिना बदलाव | वह कैसे बोलता है |
| `rolePrompt` | string या `null` | नहीं | बिना बदलाव | उसके निर्देश |
| `replyRegister` | `general`, `professional` या `null` | नहीं | — | अब इस्तेमाल में नहीं: स्वीकार होता है, कुछ नहीं बदलता |
| `model` | string | नहीं | बिना बदलाव | [list_models](https://air.build/hi/docs/mcp-tools/list_models/) से मिला model id, या टीम के डिफ़ॉल्ट को फ़ॉलो करने के लिए `default` |

## नतीजा

| फ़ील्ड | मतलब |
| --- | --- |
| `agent` | बदलाव के बाद एजेंट, [list_team_members](https://air.build/hi/docs/mcp-tools/list_team_members/#result) के फ़ील्ड के साथ: `agentId`, `name`, `template`, `role`, `bio`, `persona`, `rolePrompt`, `model`, `replyRegister`, `host`, `enabled` |

```json
{
  "agent": {
    "agentId": "designer",
    "name": "Designer",
    "template": "designer",
    "role": "Designs the app's screens and icons",
    "bio": "Layout, icons and colours.",
    "persona": null,
    "rolePrompt": null,
    "model": "<model id>",
    "replyRegister": null,
    "host": false,
    "enabled": true
  }
}
```

## त्रुटियाँ

_इटैलिक_ शब्द वाक्य के मानों की जगह हैं।

| संदेश | कब | क्या करें |
| --- | --- | --- |
| Give at least one field to change. | सिर्फ़ `teamId` और `agentId` भेजे गए | बदलने के लिए कोई फ़ील्ड भेजें |
| _field_ must be text or null. | कोई प्रोफ़ाइल फ़ील्ड न टेक्स्ट है न `null` | टेक्स्ट या `null` भेजें |
| Enter a value for _field_, or reset it to use the default. | कोई प्रोफ़ाइल फ़ील्ड खाली है या सिर्फ़ spaces है | टेक्स्ट भेजें, या टेम्पलेट वाले के लिए `null` |
| Choose a valid model and try again. | `model` खाली है, उसमें spaces हैं या वह बहुत लंबा है | [list_models](https://air.build/hi/docs/mcp-tools/list_models/) से id लें |
| Team member not found. | टीम में इस `agentId` का कोई एजेंट नहीं है | इसे [list_team_members](https://air.build/hi/docs/mcp-tools/list_team_members/) से लें |
| Team not found. | टीम मौजूद नहीं है, या आप उसमें नहीं हैं | [list_teams](https://air.build/hi/docs/mcp-tools/list_teams/) से मिला `teamId` इस्तेमाल करें |

हर टूल जो त्रुटियाँ लौटा सकता है, वे [सर्वर और साइन इन](https://air.build/hi/docs/mcp-tools/server/#errors) पर हैं।

## उदाहरण

```json
{"name": "update_agent", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "agentId": "designer", "role": "Designs the app's screens and icons"}}
```
