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

Parameters: hatch_pet
NameTypeDescription
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

JSON-RPC

{
  "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

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.