Maybe yes, but the nanobots (and their batteries) still would stay inside the body.
But maybe we are thinking just too much in technical terms.
Tyrophagus casei, a highly compact/functional design. Males are 450..550µm in size, females 500..700µm.
The cheese mite sure is a beauty (it even got a monument).
Back in the dark ages, before chemical conservation of food had been invented, it wasn't technically possible to separate the cheese from the mites.
The solution then was to put a piece of cheese plus something more tasty than the cheese into a box of cheese mites.
The mites then gratefully gave the cheese a fancy antiseptic coating.
There is a story, that the cheese sometimes still was eatable after more than 30 years.
Those who don't believe me could buy their mite cheese
here.
Isolating/defusing a tumor by encapsulating it in the digestive end product of microscopic arachnids,
just don't forget to give them something more tasty than the patient.
Since no two tumors of the same type are identical, maybe the mite sensors would have to be tuned to the biochemistry of the individual patient,
but maybe this could be automated.
Choosing and genetically modifying a specific type of mites to make them able to do the job is left as a homework assignment for the advanced biologist.
Hey, it's just a theory, don't know if this would work at all.