Then that is a direct contradiction of Romans 4.
“What then shall we say that Abraham, our forefather according to the flesh, has found? For if Abraham was justified by works, he has something to boast about, but not before God. For what does the Scripture say? “Abraham believed God, and it was credited to him as righteousness.” Now to the one who works, his wage is not credited as a favor, but as what is due. But to the one who does not work, but believes in Him who justifies the ungodly, his faith is credited as righteousness,”
Romans 4:1-5 NASB1995
Here Paul specifically says that Abraham was not justified by his works but by his faith. James says
“But someone may well say, “You have faith and I have works; show me your faith without the works, and I will show you my faith by my works.””
James 2:18 NASB1995
“You see that faith was working with his works, and as a result of the works, faith was perfected;”
James 2:22 NASB1995
“You see that a man is justified by works and not by faith alone.”
James 2:24 NASB1995
James is saying that our works are evidence of our faith. We can see a person’s faith by their works.
Justified
dikaioō
G1344
1. to render righteous or such he ought to be
2. to show, exhibit, evince, one to be righteous, such as he is and wishes himself to be considered
3. to declare, pronounce, one to be just, righteous, or such as he ought to be
Your interpretation contradicts Romans 4, mine doesn’t. James can’t be contradicting Paul so the logical definition of the word justified in James 2 is definition 2, to show, exhibit, evince, one to be righteous, such as he is and wishes himself to be considered.