Questions & Answers about wǒ zhǐ shì zài kāiwánxiào.
A useful way to read it is:
- 我 = I
- 只是 = just / only / merely
- 在 = marks an ongoing action
- 开玩笑 = joke / kid
So the whole sentence means I’m just joking or I was only kidding, depending on context.
For learning purposes, it is best to treat 只是 here as one chunk meaning just / only / merely.
Even though it is historically made of 只 + 是, in this sentence you do not need to interpret 是 as the normal verb to be. If you learn 只是 as a set expression here, the sentence becomes much easier to understand.
Also note: 只是 can mean however / but in other sentences, but that is not the meaning here.