Hatch a pet
Hatch a pet from an egg and a hatching potion.
MCP tool habitica_write → hatch_pet
write Confirm
Uses one egg and one potion and returns the new pet. A potion that does not fit the egg changes nothing and the call returns an error. It uses up the items, so check the pair first.
Parameters
| Name | Type | Description |
|---|---|---|
| egg string required | string | Egg name from list_pets_and_mounts, for example Wolf. |
| hatching_potion string required | string | Potion name from list_pets_and_mounts, for example Base. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "habitica_write",
"arguments": {
"operation": "hatch_pet",
"arguments": {
"egg": "egg",
"hatching_potion": "hatching potion"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"pet": "Wolf-Base",
"eggs_left": {
"Wolf": 1,
"Fox": 1
},
"hatching_potions_left": {
"Red": 1
}
},
"isError": false
}