From Summary to Action: Enhancing Large Language Models for Complex Tasks with Open World APIs