Send context.to_dict() as RPC param

Change-Id: I0a841b7f3dd8ddc50286d79afac06ffffdcb993b