fn catch_job(world: &mut World, job: Job) -> Result<Output, String>Available on crate feature
mcp and non-WebAssembly only.Expand description
Run one tool job, catching a panic into an error reply.
The world outlives the unwind only as a memory: what a job that panicked mid-way left behind is not promised to be consistent, so the error says the world may need a restart rather than pretending the tool merely failed.