How to instantiate an object and recieve data from the parent node

Godot Version

Godot 4.2

Question

How to instantiate an object and receive data from the parent node?
because I want to control the the size and color of rectangle.