Mined, Sealed, and Still Useful

Riddle:

I come from stone, live in wood, and never leave my prison. Yet I write your words. What am I?

Answer:

Pencil lead — Graphite is mined (from stone), encased in wood, and though it stays inside the pencil, it leaves marks (writing) everywhere. It plays on the irony of being confined yet productive.