How would you go about replacing a tile at runtime?

Maybe I’m over thinking an obvious solution, but does the community have any suggestions on where to look for replacing a tile on a tilemap at runtime? The intended use and application is allowing the player to dig on any grass tile, so the player uses their shovel, and I want to turn the grass tile into a dirt hole tile.

You can use Tilemap.SetTile([position], [dirtHoleTile]) to directly change the Tile at a particular position. Using Tilemap.SwapTile would swap all Grass Tiles to Dirt Holes.