hamravesh_create_app
Create a new Docker-image app on Hamravesh. Requires plan, namespace, and organization IDs from an existing app.
Instructions
ساخت یک اپِ داکر-ایمیجِ جدید در دارکوب (بدنهاش با تست زنده تأیید شده). به plan (uuid پلن منابع)، namespace (id عددی namespace) و organization (id عددی سازمان) نیاز دارد — این مقادیر را از hamravesh_get_app روی یک اپِ موجود ببین (plan آن، و idِ namespace و organization همان اپ را بردار). (غیرفعال — برای فعالسازی HAMRAVESH_ALLOW_WRITE=1) [پیشنمایش: dry_run:true یا env HAMRAVESH_DRY_RUN=1]
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": {
"name": "<name>",
"image_repo": "<image_repo>",
"image_tag": "<image_tag>",
"service_port": "<service_port>",
"plan": "<plan>",
"namespace": "<namespace>",
"organization": "<organization>"
},
"name": "hamravesh_create_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | نام اپ (بعداً تغییرناپذیر) | |
| image_repo | Yes | آدرس ایمیج، مثل traefik/whoami | |
| image_tag | Yes | تگ ایمیج، مثل latest | |
| service_port | Yes | پورت سرویس/کانتینر، مثل 80 | |
| plan | Yes | uuid پلن منابع | |
| namespace | Yes | id عددی namespace | |
| organization | Yes | id عددی سازمان | |
| replicas | No | پیشفرض 1 | |
| command | No | دستورِ اجرایی (entrypoint). با فاصله از هم جدا میشود → برای آرگومانِ دارای فاصله از sh -c استفاده کن. | |
| args | No | آرگومانها (با فاصله جدا) | |
| envs | No | متغیرهای عادی، هر آیتم {name, value} | |
| secret_envs | No | متغیرهای محرمانه (Vault)، هر آیتم {name, value} | |
| is_enabled | No | اگر false، اپ ساخته میشود ولی اجرا نمیشود — برای جلوگیری از اجرای دستورِ پیشفرضِ image (مثلاً migrate). پیشفرض true. | |
| org | No | نام سازمان برای هدر X-Organization |