How do a modify a parameter inside a material?

What you’re doing with that graph is just creating a new material every frame.
Like ~60 new materials every second and not applying them anywhere.

When you create a material instance, you must apply it to the target mesh.
Then you change the parameter value and your changes to the material will be visible. You never create a material instance every frame, no need for that.