A miniature ingestible capsule has multiple therapeutic or diagnostic operations that can be performed. These functions are controlled by a combination of an outside control, a pose beacon and through information relayed from an imagining array and transmitter. These functions can be in a separate capsule without an imaging array or within the same capsule with an imaging array. Typically, there is one function performed in addition to imaging. These functions can include suction and spray capabilities, ultrasound sensor, lithotripsy, laser, heat, electrocautery, BICAP, biopsy forceps, a needle knife snare cautery (cold and hot with continuous or pulsed current for cutting and coagulation), with a basket, and fine needle aspiration with various wheels and fins and motors controlled externally and other tools to be used in humans. All of these tools can be attached to a retractable arm. Also, they can be used on an elevator device that lifts them, allowing for an extra 180° of movement.