>(There is an extended command that lets you reach >for the dwarf and try to rescue it from the pit. >Which one is it? #chat?)
I don't know, but #untrap can be used to rescue pets from pits.