This squirrel cuckoo was visiting the Zoo Ave animal rescue centre near San José in Costa Rica, just as we were. It was lurking in a tree, just like a squirrel. Wikipedia says, appropriately: “most often encountered skulking about within vegetation”.
The underside of the tail is strikingly marked.
And the bird including tail is actually quite long.