Pilocarpine is a medication used to treat conditions like glaucoma. While it may temporarily improve near vision and focusing ability, its primary purpose is to reduce intraocular pressure.