SAN FRANCISCO — Yahoo Inc. has filed a lawsuit accusing a former employee of lifting Yahoo’s patents and confidential information, and taking them with him to his new startup.

Steven Clarke-Martin, a software engineer at Yahoo until 2007, signed an agreement granting Yahoo the rights to all inventions he developed while employed with the company, according to the breach-of-contract complaint filed in Santa Clara County Superior Court on Tuesday.