For spells you currently have: Code: ClearLog(); foreach(var x in ActionManager.CurrentActions) { Log("{0} - {1}", x.Key, x.Value.Name); } ActionManager also supports casting spells by name.
If you need to do a quick lookup for your own purposes, you can go to www.xivdb.com and search for a skill. Once you're on that skill's page, the ID will appear in the URL of the page. This goes for everything else in the game.